认证参数收集清单-填写人导入必填校验去掉。66949

This commit is contained in:
wangzhijiang
2023-03-31 11:09:16 +08:00
parent b2bced060a
commit 8d7276fd1e
@@ -5940,14 +5940,14 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
Map<String, Object> resultMap = new HashMap<>(); Map<String, Object> resultMap = new HashMap<>();
// 校验必填 // 校验必填
if (IsMustEnum.YES.getValue().equals(mustInput) && StringUtils.isEmpty(value)) { /*if (IsMustEnum.YES.getValue().equals(mustInput) && StringUtils.isEmpty(value)) {
if (CutEnum.CN.getValue().equals(cut)) { if (CutEnum.CN.getValue().equals(cut)) {
errorMsg += configName + "为必填项,不能为空;"; errorMsg += configName + "为必填项,不能为空;";
} else { } else {
errorMsg += configName + " is mandatory and cannot be empty; "; errorMsg += configName + " is mandatory and cannot be empty; ";
} }
countError++; countError++;
} }*/
String fileName = value; String fileName = value;
if (StringUtils.isNotBlank(fileName)) { if (StringUtils.isNotBlank(fileName)) {
@@ -5984,14 +5984,14 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
// StringBuilder newValue = new StringBuilder(); // StringBuilder newValue = new StringBuilder();
// 校验必填 // 校验必填
if (IsMustEnum.YES.getValue().equals(mustInput) && StringUtils.isEmpty(value)) { /*if (IsMustEnum.YES.getValue().equals(mustInput) && StringUtils.isEmpty(value)) {
if (CutEnum.CN.getValue().equals(cut)) { if (CutEnum.CN.getValue().equals(cut)) {
errorMsg += configName + "为必填项,不能为空;"; errorMsg += configName + "为必填项,不能为空;";
} else { } else {
errorMsg += configName + " is mandatory and cannot be empty; "; errorMsg += configName + " is mandatory and cannot be empty; ";
} }
countError++; countError++;
} }*/
if (StringUtils.isNotEmpty(value)) { if (StringUtils.isNotEmpty(value)) {
//判断是否是单选 //判断是否是单选
@@ -6047,14 +6047,14 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
Map<String, Object> resultMap = new HashMap<>(); Map<String, Object> resultMap = new HashMap<>();
// 校验必填 // 校验必填
if (IsMustEnum.YES.getValue().equals(mustInput) && StringUtils.isEmpty(value)) { /*if (IsMustEnum.YES.getValue().equals(mustInput) && StringUtils.isEmpty(value)) {
if (CutEnum.CN.getValue().equals(cut)) { if (CutEnum.CN.getValue().equals(cut)) {
errorMsg += configName + "为必填项,不能为空;"; errorMsg += configName + "为必填项,不能为空;";
} else { } else {
errorMsg += configName + " is mandatory and cannot be empty; "; errorMsg += configName + " is mandatory and cannot be empty; ";
} }
countError++; countError++;
} }*/
// 校验长度 // 校验长度
if (StringUtils.isNotBlank(value) && value.length() > Long.parseLong(dbLength)) { if (StringUtils.isNotBlank(value) && value.length() > Long.parseLong(dbLength)) {