认证-参数项-标题类型校验修改
This commit is contained in:
+13
-10
@@ -1171,7 +1171,7 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
||||
List<String> stringMessage = new ArrayList<>();
|
||||
List<String> nioNumberImport = new ArrayList<>(); // 记录导入的nio编号
|
||||
|
||||
int i = 1; //记录行号
|
||||
int i = 2; //记录行号
|
||||
//循环验证数据
|
||||
for (ParamsInfoCnImport dto : paramsInfoEOList) {
|
||||
//判断此行数据是否全部为空,是则不读取
|
||||
@@ -1278,13 +1278,6 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
||||
errorMsg += (String)resultMap.get("errorMsg");
|
||||
countError += (int)resultMap.get("countError");
|
||||
|
||||
// 认证类别
|
||||
// 来源:认证类别sheet页
|
||||
resultMap = validateMustAndLength(nioCertCategoryMap.get(nioNumber), "认证类别", "Cert Category", IsMustEnum.YES.getValue(), "1000", false, cut);
|
||||
errorMsg += (String)resultMap.get("errorMsg");
|
||||
countError += (int)resultMap.get("countError");
|
||||
dto.setCertCategory(nioCertCategoryMap.get(nioNumber));
|
||||
|
||||
// String certCategory = dto.getCertCategory();
|
||||
// resultMap = validateMustAndLength(certCategory, "认证类别", "cert category", IsMustEnum.YES.getValue(), "1000", false, cut);
|
||||
// errorMsg += (String)resultMap.get("errorMsg");
|
||||
@@ -1306,6 +1299,17 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
||||
controlType = (String)resultMap.get("value");
|
||||
dto.setControlType(controlType);
|
||||
|
||||
// 认证类别
|
||||
// 来源:认证类别sheet页
|
||||
if (ControlTypeEnum.Title.getValue().equals(controlType)) {
|
||||
resultMap = validateMustAndLength(nioCertCategoryMap.get(nioNumber), "认证类别", "Cert Category", IsMustEnum.NO.getValue(), "1000", false, cut);
|
||||
} else {
|
||||
resultMap = validateMustAndLength(nioCertCategoryMap.get(nioNumber), "认证类别", "Cert Category", IsMustEnum.YES.getValue(), "1000", false, cut);
|
||||
}
|
||||
errorMsg += (String)resultMap.get("errorMsg");
|
||||
countError += (int)resultMap.get("countError");
|
||||
dto.setCertCategory(nioCertCategoryMap.get(nioNumber));
|
||||
|
||||
// 控件备选值
|
||||
String controlValues = dto.getControlValues();
|
||||
if (ControlTypeEnum.PULL_SINGLE.getValue().equals(controlType)
|
||||
@@ -1352,7 +1356,6 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
||||
dto.setControlVerify(null);
|
||||
}
|
||||
|
||||
|
||||
// 标题默认值
|
||||
String titleDefaultValue = dto.getTitleDefaultValue();
|
||||
if (ControlTypeEnum.Title.getValue().equals(controlType)) {
|
||||
@@ -1427,7 +1430,7 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
||||
|
||||
List<String> ccNioNumberImport = new ArrayList<>(); // 记录导入的nio编号
|
||||
|
||||
int j = 1;
|
||||
int j = 2;
|
||||
for (CertCategoryParamsInfoCnImport ccDto : ccDtoList) {
|
||||
//判断此行数据是否全部为空,是则不读取
|
||||
if (checkObjAllFieldsIsNull(ccDto)) {
|
||||
|
||||
Reference in New Issue
Block a user