认证-参数项-标题类型,认证类别必填
This commit is contained in:
+2
-4
@@ -137,8 +137,7 @@ public class ParamsInfoEOController extends JeroController<ParamsInfoEO, IParams
|
||||
@PostMapping(value = "/add")
|
||||
// @RequiresPermissions("params:paramsInfo:add")
|
||||
public Result<?> add(@Validated @RequestBody ParamsInfoEO paramsInfoEO) {
|
||||
if (StringUtils.isEmpty(paramsInfoEO.getCertCategory())
|
||||
&& !ControlTypeEnum.Title.getValue().equals(paramsInfoEO.getControlType())) {
|
||||
if (StringUtils.isEmpty(paramsInfoEO.getCertCategory())) {
|
||||
return Result.error("认证类别不能为空!");
|
||||
}
|
||||
boolean isSuccess = paramsInfoEOService.add(paramsInfoEO);
|
||||
@@ -160,8 +159,7 @@ public class ParamsInfoEOController extends JeroController<ParamsInfoEO, IParams
|
||||
@PostMapping(value = "/edit")
|
||||
@RequiresPermissions("params:paramsInfo:edit")
|
||||
public Result<?> edit(@Validated @RequestBody ParamsInfoEO paramsInfoEO) {
|
||||
if (StringUtils.isEmpty(paramsInfoEO.getCertCategory())
|
||||
&& !ControlTypeEnum.Title.getValue().equals(paramsInfoEO.getControlType())) {
|
||||
if (StringUtils.isEmpty(paramsInfoEO.getCertCategory())) {
|
||||
return Result.error("认证类别不能为空!");
|
||||
}
|
||||
boolean isSuccess = paramsInfoEOService.editById(paramsInfoEO);
|
||||
|
||||
+7
-11
@@ -1311,6 +1311,13 @@ 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");
|
||||
@@ -1332,17 +1339,6 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user