Commit ca96da48 by wqc

新增组件跟组件接口

parent ff4ffe7a
......@@ -9,7 +9,7 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Map;
@Api(tags = "通用查询")
@Api(tags = "组件执行接口")
@RestController
@RequestMapping(value = "/data/execute")
public class ComponentRunController {
......@@ -18,9 +18,33 @@ public class ComponentRunController {
private CommonQueryService commonQueryService;
@ApiOperation("去重执行")
@PostMapping("/remove")
@PostMapping("/removeRepeat")
public ResultVo removeRepeat(@RequestBody Map<String, Object> body) throws Exception {
return ResultVo.success(commonQueryService.removeRepeat(body));
}
@ApiOperation("身份证清洗")
@PostMapping("/identityClean")
public ResultVo identityClean(@RequestBody Map<String, Object> body) throws Exception {
return ResultVo.success(commonQueryService.identityClean(body));
}
@ApiOperation("字符串替换")
@PostMapping("/replaceString")
public ResultVo replaceString(@RequestBody Map<String, Object> body) throws Exception {
return ResultVo.success(commonQueryService.replaceString(body));
}
@ApiOperation("记录排序")
@PostMapping("/SortRecord")
public ResultVo SortRecord(@RequestBody Map<String, Object> body) throws Exception {
return ResultVo.success(commonQueryService.SortRecord(body));
}
@ApiOperation("记录排序")
@PostMapping("/cutString")
public ResultVo CutString(@RequestBody Map<String, Object> body) throws Exception {
return ResultVo.success(commonQueryService.CutString(body));
}
}
......@@ -5,6 +5,7 @@ import cn.hutool.json.JSONUtil;
import com.alibaba.druid.pool.DruidPooledConnection;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jcraft.jsch.Logger;
import com.zq.common.exception.BusinessException;
import com.zq.common.vo.PageVo;
import com.zq.common.vo.ResultVo;
......@@ -15,7 +16,9 @@ import com.zq.dataoperation.entity.CommonQuerySetting;
import com.zq.dataoperation.entity.MetaDataMapping;
import com.zq.dataoperation.entity.QueryDb;
import com.zq.dataoperation.utils.ConnectionUtil;
import com.zq.dataoperation.utils.IdentityUtils;
import com.zq.dataoperation.utils.SqlUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
......@@ -180,12 +183,87 @@ public class CommonQueryService extends ServiceImpl<CommonQuerySettingDao, Commo
return commonQuery(sql,id);
}
//----------------------------------组件接口----------------------------------------------------------
//去重
public Object removeRepeat(Map<String, Object> body) throws Exception {
JSONObject jsonObject = JSONUtil.parseObj(body);
Long datasourceId = Long.valueOf(jsonObject.get("datasourceId").toString());
String tableName = jsonObject.get("tableName").toString();
String metaData = jsonObject.get("metaData").toString();
String sql = "SELECT DISTINCT " + metaData + ",m.* FROM " + tableName+" m";
String sql1="SELECT "+metaData+" FROM " + tableName+" GROUP BY "+metaData+" HAVING COUNT("+metaData+")>1;";
List<Map> mapList = commonQuery(sql1, datasourceId);
if (mapList==null){
return "该字段没有重复值";
}else{
String sql = "SELECT * FROM " + tableName + " WHERE id not in (SELECT MIN(id) FROM " + tableName+" GROUP BY "+metaData+" HAVING COUNT("+metaData+")>1);";
return commonQuery(sql, datasourceId);
}
}
//身份证清洗
public Object identityClean(Map<String, Object> body) throws Exception {
JSONObject jsonObject = JSONUtil.parseObj(body);
Long datasourceId = Long.valueOf(jsonObject.get("datasourceId").toString());
String tableName = jsonObject.get("tableName").toString();
String metaData = jsonObject.get("metaData").toString();
String sql="SELECT * FROM " + tableName;
if (StringUtils.isNotBlank(metaData)) {
return "字段为身份证且不为空!";
}
if(IdentityUtils.isLegalIdCard(metaData)!=true){
return "身份证号不符";
}else if(IdentityUtils.is15BitLegalIdCard(metaData)!=true){
return "身份证不满15位!";
}else if(IdentityUtils.is18BitLegalIdCard(metaData)!=true){
return "身份证不满18位!";
}else {
return commonQuery(sql,datasourceId);
}
}
//字符串替换
public Object replaceString(Map<String, Object> body) throws Exception {
JSONObject jsonObject = JSONUtil.parseObj(body);
Long datasourceId = Long.valueOf(jsonObject.get("datasourceId").toString());
String tableName = jsonObject.get("tableName").toString();
String metaData = jsonObject.get("metaData").toString();
String originStr= jsonObject.get("originStr").toString();
String replaceStr= jsonObject.get("replaceStr").toString();
String sql ="UPDATE "+tableName+" SET "+metaData+"=REPLACE("+metaData+",'"+originStr+"','"+replaceStr+"');";
if (StringUtils.isNotBlank(metaData)&&StringUtils.isNotBlank(tableName)&&StringUtils.isNotBlank(originStr)&&StringUtils.isNotBlank(replaceStr)) {
return "传入参数不能为空";
}else{
return commonQuery(sql,datasourceId);
}
}
public Object SortRecord(Map<String, Object> body) throws Exception {
JSONObject jsonObject = JSONUtil.parseObj(body);
Long datasourceId = Long.valueOf(jsonObject.get("datasourceId").toString());
String tableName = jsonObject.get("tableName").toString();
String metaData = jsonObject.get("metaData").toString();
String sortStr=jsonObject.get("sortStr").toString();
if(sortStr.equals("1")){
sortStr="ASC";
}else{
sortStr="DESC";
}
String sql="SELECT * FROM "+tableName+" ORDER BY "+metaData+" "+sortStr;
return commonQuery(sql,datasourceId);
}
public Object CutString(Map<String, Object> body) throws Exception {
JSONObject jsonObject = JSONUtil.parseObj(body);
Long datasourceId = Long.valueOf(jsonObject.get("datasourceId").toString());
String tableName = jsonObject.get("tableName").toString();
String beginStr = jsonObject.get("beginStr").toString();
String indexStr = jsonObject.get("indexStr").toString();
String metaData = jsonObject.get("metaData").toString();
String sql="SELECT *,"+" SUBSTR("+metaData+","+beginStr+","+indexStr+") AS "+metaData +"1 FROM "+tableName;
if (StringUtils.isNotBlank(metaData)&&StringUtils.isNotBlank(tableName)&&StringUtils.isNotBlank(beginStr)&&StringUtils.isNotBlank(indexStr)) {
return "传入参数不能为空";
}else{
return commonQuery(sql,datasourceId);
}
}
}
package com.zq.dataoperation.utils;
import java.util.stream.IntStream;
/**
* 身份证号码验证
* 1、号码的结构
* 公民身份号码是特征组合码,由十七位数字本体码和一位校验码组成。从左至右依次为:六位数字地址码,
* 八位数字出生日期码,三位数字顺序码和一位数字校验码。
* 2、地址码(前六位数)
* 表示编码对象常住户口所在县(市、旗、区)的行政区划代码,按GB/T2260的规定执行。
* 3、出生日期码(第七位至十四位)
* 表示编码对象出生的年、月、日,按GB/T7408的规定执行,年、月、日代码之间不用分隔符。
* 4、顺序码(第十五位至十七位)
* 表示在同一地址码所标识的区域范围内,对同年、同月、同日出生的人编定的顺序号,
* 顺序码的奇数分配给男性,偶数分配给女性。
* 5、校验码(第十八位数)
* (1)十七位数字本体码加权求和公式 S = Sum(Ai Wi), i = 0, , 16 ,先对前17位数字的权求和 ;
* Ai:表示第i位置上的身份证号码数字值; Wi:表示第i位置上的加权因子 Wi: 7 9 10 5 8 4 2 1 6 3 7 9 10 5 8 4 2
* (2)计算模 Y = mod(S, 11)
* (3)通过模( 0 1 2 3 4 5 6 7 8 9 10)得到对应的校验码 Y:1 0 X 9 8 7 6 5 4 3 2
*
*/
public class IdentityUtils {
/**
* 身份证校验码
*/
private static final int[] COEFFICIENT_ARRAY = {7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2};
/**
* 身份证号的尾数规则
*/
private static final String[] IDENTITY_MANTISSA = {"1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2"};
private static final String IDENTITY_PATTERN_15 = "^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0-2]\\d)|3[0-1])\\d{3}$";
// 修改前未做X位的校验:"^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0-2]\\d)|3[0-1])\\d{4}$";
// 修改后:"^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0-2]\\d)|3[0-1])\\d{3}[0-9Xx]$";
private static final String IDENTITY_PATTERN_18 = "^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0-2]\\d)|3[0-1])\\d{3}[0-9Xx]$";
/**
* 身份证号校验
*/
public static boolean isLegalIdCard(String identity) {
if (identity == null) {
return false;
}
if (identity.length() == 15) {
return is15BitLegalIdCard(identity);
}
if (identity.length() == 18) {
return is18BitLegalIdCard(identity);
}
return false;
}
public static boolean is15BitLegalIdCard(String identity) {
return identity.matches(IDENTITY_PATTERN_15);
}
public static boolean is18BitLegalIdCard(String identity) {
if (identity.length() != 18) {
return false;
}
if (!identity.matches(IDENTITY_PATTERN_18)) {
return false;
}
// 将字符串对象中的字符转换为一个字符数组
char[] chars = identity.toCharArray();
long sum = IntStream.range(0, 17).map(index -> {
char ch = chars[index];
// 通俗理解:digit()是个边界值判断,不过边界返回字符数字本身数值,超过边界即返回 -1.
int digit = Character.digit(ch, 10);
int coefficient = COEFFICIENT_ARRAY[index];
return digit * coefficient;
}).summaryStatistics().getSum();
// 计算出的尾数索引
int mantissaIndex = (int) (sum % 11);
String mantissa = IDENTITY_MANTISSA[mantissaIndex];
String lastChar = identity.substring(17);
return lastChar.equalsIgnoreCase(mantissa);
}
}
package com.zq.spiderflow.core.executor.shape;
import com.zq.spiderflow.context.SpiderContext;
import com.zq.spiderflow.executor.ShapeExecutor;
import com.zq.spiderflow.model.Shape;
import com.zq.spiderflow.model.SpiderNode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import java.util.Map;
/**
* @author Administrator
*/
@Component
public class CutStringExecutor implements ShapeExecutor {
public static final String DATASOURCE_ID = "datasourceId";
public static final String META_DATA = "metaData";
public static final String TABLE_NAME = "tableName";
private static final Logger logger = LoggerFactory.getLogger(ExecuteSQLExecutor.class);
@Override
public Shape shape() {
Shape shape = new Shape();
//web界面上显示的图标
shape.setImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAtZklEQVR4nO3dV7Bd1Z3n8e9SQiInIaJABJFEzjkaEJhsjI3dDt14uqtmetzdVV3zMA89Dz1V/TLV01U93V0zbtvtgLFNtAERRRQ5gwSYIJFEBomMkLTm4b+vJcSV7r377HXi91N1Cwld7bXvOUf7t/cK/5VyzkiSNFbjOn0CkqTeZIBIkmoxQCRJtRggkqRaDBBJUi0GiCSpFgNEklS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A0SSVIsBIkmqxQCRJNVigEiSajFAJEm1GCCSpFoMEElSLQaIJKkWA0SSVIsBIkmqxQCRJNVigEiSajFAJEm1GCCSpFoMEElSLQaIJKkWA0SSVIsBIkmqxQCRJNVigEiSajFAJEm1GCCSpFoMEElSLQaIJKkWA0SSVIsBIkmqxQCRJNVigEiSajFAJEm1GCCSpFr+P/9MPgI6g3weAAAAAElFTkSuQmCC");
//拖放至容器里时默认的节点名称
shape.setLabel("CutString");
//模板文件名
shape.setName("CutString");
//鼠标移动至图标上显示的名称
shape.setTitle("剪切字符串");
return shape;
}
@Override
public String supportShape() {
return "CutString";
}
@Override
public void execute(SpiderNode node, SpiderContext context, Map<String, Object> variables) {
}
@Override
public boolean allowExecuteNext(SpiderNode node, SpiderContext context, Map<String, Object> variables) {
return false;
}
@Override
public boolean isThread() {
return false;
}
}
package com.zq.spiderflow.core.executor.shape;
import com.zq.spiderflow.context.SpiderContext;
import com.zq.spiderflow.executor.ShapeExecutor;
import com.zq.spiderflow.model.Shape;
import com.zq.spiderflow.model.SpiderNode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import java.util.Map;
/**
* @author Administrator
*/
@Component
public class DataEliminateExecutor implements ShapeExecutor {
public static final String DATASOURCE_ID = "datasourceId";
public static final String META_DATA = "metaData";
public static final String TABLE_NAME = "tableName";
private static final Logger logger = LoggerFactory.getLogger(ExecuteSQLExecutor.class);
@Override
public Shape shape() {
Shape shape = new Shape();
//web界面上显示的图标
shape.setImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAWy0lEQVR4nO3da6xl530X4N/2Jc7Fk5lEQpyoKh4aklYo4JHCB0hLPKVIlLTF09CmobTJxGmaRK3ISZtbL6STUJWmafAxH6qUEHuStrm0AcZAbRqBOE4JCCjShABqSpvORCAfxCUzHl/i2J7Fh7UcD+bsM2e/677P80hLHs9a79r/2eu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时默认的节点名称
shape.setLabel("DataEliminate");
//模板文件名
shape.setName("DataEliminate");
//鼠标移动至图标上显示的名称
shape.setTitle("数据剔除");
return shape;
}
@Override
public String supportShape() {
return "DataEliminate";
}
@Override
public void execute(SpiderNode node, SpiderContext context, Map<String, Object> variables) {
}
@Override
public boolean allowExecuteNext(SpiderNode node, SpiderContext context, Map<String, Object> variables) {
return false;
}
@Override
public boolean isThread() {
return false;
}
}
package com.zq.spiderflow.core.executor.shape;
import com.zq.spiderflow.context.SpiderContext;
import com.zq.spiderflow.executor.ShapeExecutor;
import com.zq.spiderflow.model.Shape;
import com.zq.spiderflow.model.SpiderNode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import java.util.Map;
/**
* @author Administrator
*/
@Component
public class GroupingMetaExecutor implements ShapeExecutor {
public static final String DATASOURCE_ID = "datasourceId";
public static final String META_DATA = "metaData";
public static final String TABLE_NAME = "tableName";
private static final Logger logger = LoggerFactory.getLogger(ExecuteSQLExecutor.class);
@Override
public Shape shape() {
Shape shape = new Shape();
//web界面上显示的图标
shape.setImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACnpJREFUeF7tnU+InVcZh39nkmAKFkK03Ds1iwpaxVKwdCOIkmIpCLrQhZDqIqA2aGnn3oCm4KITEIRQcr8RWxQC3Ym4sFKVLpSmbnRVKJL6d2M17dzJiESwNrSZe2RiU5KYmfvNmfOe7zvnPF2f8573fX7n4dK533fjxH8QgMCWBBxsIACBrQkgCLcDAtsQQBCuBwQQhDsAgTACfIKEcWNXJQQQpJKgGTOMAIKEcWNXJQQQpJKgGTOMAIKEcWNXJQQQpJKgGTOMAIKEcWNXJQQQpJKgGTOMAIKEcWNXJQQQpJKgGTOMAIKEcWNXJQQQpJKgGTOMAIKEcWNXJQQQpJKgGTOMAIKEcWNXJQQQpJKgGTOMAIKEcWNXJQQQpJKgGTOMAIKEcWNXJQQ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TcnrcCM/LC/v06dcedn+PXR9BYhMtsF4UQey4vKwFfWH6qPu9xREIYkG1sJo9FsRUDv6KVdhFthqnp4KYy2EuyNtg75Z00Cq8Cuv+x0t/cl7Pxv6T5lYseyhIEjlMBRk2/pykuyq8wMlG3vC6Z33sXrI+sGeCJJPDTJBh4zffBDtqHVzt9b100S3o41b/g3qVb48ESSqHiSB3LPv9lw7ogqRba7/AKeb3Tl9dW3JnLM/qiSDJ5TARZDjxh+V01jIwal9DwOghvWsZ90CQTuRAkBJMK1+QzuRAEARpRaDDT5BO5UCQVtej54vK/QTpXA4E6fndb9VemYL0Qg4EaXUDe76oPEF6IweC9Pzut2qvLEF6JQeCtLqBPV9UjiC9kwNBen73W7VXhiC9lMNEEL5Jb3Wtoy1K8U36YuM/6aVfR2v6+kK9lcNEkM2iPItldJVuKJvqWaxDp/0tlxeuPD707siT9VoOM0HeloSneSPfphvLpXqa90qeK/5ZeX024ki9l8NUkCtQJ35ZTrwPEvFWSUr+Pshm+4PGf8ZJP4s0ShZymAsSCSZlekIg0qdINnIgSE8uXi5tDL/rP6KZfryLF+GykgNBcrmZPepzF5I8rwU9Yv1yV2xU/KpJbKIV1NuUxG9oyTk91Gpcpyen+zXWMfdWq/U9WoQgPQojt1YWV/y9M68vOekTku69of/fSfqhc/rV6pJ7MbfZrvaLILkm17O+b3/Cv/fyPt0ppzW/R2vrD7t/96zFoHYQJAgbm2ohgCC1JM2cQQQQJAgbm2ohgCC1JM2cQQQQJAgbm2ohgCC1JM2cQQQQJAgbm2ohgCC1JM2cQQQQJAgbm2ohgCC1JM2cQQQQJAgbm2ohgCC1JM2cQQQQJAgbm2ohgCC1JM2cQQQQJAgbm2ohgCC1JM2cQQQQJAgbm2ohgCC1JM2cQQQQJAgbm2ohgCC1JM2cQQQQJAgbm2ohgCC1JM2cQQQQJAgbm2oh8F/AWz0Flp1SAQAAAABJRU5ErkJggg==");
//拖放至容器里时默认的节点名称
shape.setLabel("GroupingMeta");
//模板文件名
shape.setName("GroupingMeta");
//鼠标移动至图标上显示的名称
shape.setTitle("字段分组");
return shape;
}
@Override
public String supportShape() {
return "GroupingMeta";
}
@Override
public void execute(SpiderNode node, SpiderContext context, Map<String, Object> variables) {
}
@Override
public boolean allowExecuteNext(SpiderNode node, SpiderContext context, Map<String, Object> variables) {
return false;
}
@Override
public boolean isThread() {
return false;
}
}
package com.zq.spiderflow.core.executor.shape;
import com.zq.spiderflow.context.SpiderContext;
import com.zq.spiderflow.executor.ShapeExecutor;
import com.zq.spiderflow.model.Shape;
import com.zq.spiderflow.model.SpiderNode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import java.util.Map;
/**
* @author Administrator
*/
@Component
public class TableLeftJoinExecutor implements ShapeExecutor {
public static final String DATASOURCE_ID = "datasourceId";
public static final String META_DATA = "metaData";
public static final String TABLE_NAME = "tableName";
private static final Logger logger = LoggerFactory.getLogger(ExecuteSQLExecutor.class);
@Override
public Shape shape() {
Shape shape = new Shape();
//web界面上显示的图标
shape.setImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAV+ElEQVR4nO3debBkVX3A8e/pfjPDMMgmI4JxQTBRQIKmlGiUQqIEEcUlLrhUmQTUqBFwyRiUiChGLaNFyqhRs1hZNO6WGiMqFololVQQiWKCgyuGCIIEhm2Yvid/3DfMwGyvf31Pn9uvv5+qdorhvXvODHZ/393OTTlnJEka16D2BCRJs8mASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkKcSASJJCDIgkK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gMXjjkTSLLqN9/15SeyKavj4EBNqfXI4C3o6LsEmz4A7a9+tRuOcxt/oSEIDbgHXAYcAHgVvqTkfSdtxK+/48jPb9elvd6aimGsu578p64FTgDOBE4HHAkcBBwN7AiloTk+bMHcANwA9pr7C6APgcsKHinNQjKWcfryFJGl+fDmFJkmaIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhRgQSVKIAZEkhfw/xqVozoQ1jYcAAAAASUVORK5CYII=");
//拖放至容器里时默认的节点名称
shape.setLabel("TableLeftJoin");
//模板文件名
shape.setName("TableLeftJoin");
//鼠标移动至图标上显示的名称
shape.setTitle("表关联");
return shape;
}
@Override
public String supportShape() {
return "TableLeftJoin";
}
@Override
public void execute(SpiderNode node, SpiderContext context, Map<String, Object> variables) {
}
@Override
public boolean allowExecuteNext(SpiderNode node, SpiderContext context, Map<String, Object> variables) {
return false;
}
@Override
public boolean isThread() {
return false;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment