Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage
This commit is contained in:
+2
-4
@@ -137,8 +137,7 @@ public class ParamsInfoEOController extends JeroController<ParamsInfoEO, IParams
|
|||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
// @RequiresPermissions("params:paramsInfo:add")
|
// @RequiresPermissions("params:paramsInfo:add")
|
||||||
public Result<?> add(@Validated @RequestBody ParamsInfoEO paramsInfoEO) {
|
public Result<?> add(@Validated @RequestBody ParamsInfoEO paramsInfoEO) {
|
||||||
if (StringUtils.isEmpty(paramsInfoEO.getCertCategory())
|
if (StringUtils.isEmpty(paramsInfoEO.getCertCategory())) {
|
||||||
&& !ControlTypeEnum.Title.getValue().equals(paramsInfoEO.getControlType())) {
|
|
||||||
return Result.error("认证类别不能为空!");
|
return Result.error("认证类别不能为空!");
|
||||||
}
|
}
|
||||||
boolean isSuccess = paramsInfoEOService.add(paramsInfoEO);
|
boolean isSuccess = paramsInfoEOService.add(paramsInfoEO);
|
||||||
@@ -160,8 +159,7 @@ public class ParamsInfoEOController extends JeroController<ParamsInfoEO, IParams
|
|||||||
@PostMapping(value = "/edit")
|
@PostMapping(value = "/edit")
|
||||||
@RequiresPermissions("params:paramsInfo:edit")
|
@RequiresPermissions("params:paramsInfo:edit")
|
||||||
public Result<?> edit(@Validated @RequestBody ParamsInfoEO paramsInfoEO) {
|
public Result<?> edit(@Validated @RequestBody ParamsInfoEO paramsInfoEO) {
|
||||||
if (StringUtils.isEmpty(paramsInfoEO.getCertCategory())
|
if (StringUtils.isEmpty(paramsInfoEO.getCertCategory())) {
|
||||||
&& !ControlTypeEnum.Title.getValue().equals(paramsInfoEO.getControlType())) {
|
|
||||||
return Result.error("认证类别不能为空!");
|
return Result.error("认证类别不能为空!");
|
||||||
}
|
}
|
||||||
boolean isSuccess = paramsInfoEOService.editById(paramsInfoEO);
|
boolean isSuccess = paramsInfoEOService.editById(paramsInfoEO);
|
||||||
|
|||||||
+7
-11
@@ -1311,6 +1311,13 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
|||||||
errorMsg += (String)resultMap.get("errorMsg");
|
errorMsg += (String)resultMap.get("errorMsg");
|
||||||
countError += (int)resultMap.get("countError");
|
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();
|
// String certCategory = dto.getCertCategory();
|
||||||
// resultMap = validateMustAndLength(certCategory, "认证类别", "cert category", IsMustEnum.YES.getValue(), "1000", false, cut);
|
// resultMap = validateMustAndLength(certCategory, "认证类别", "cert category", IsMustEnum.YES.getValue(), "1000", false, cut);
|
||||||
// errorMsg += (String)resultMap.get("errorMsg");
|
// errorMsg += (String)resultMap.get("errorMsg");
|
||||||
@@ -1332,17 +1339,6 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
|||||||
controlType = (String)resultMap.get("value");
|
controlType = (String)resultMap.get("value");
|
||||||
dto.setControlType(controlType);
|
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();
|
String controlValues = dto.getControlValues();
|
||||||
if (ControlTypeEnum.PULL_SINGLE.getValue().equals(controlType)
|
if (ControlTypeEnum.PULL_SINGLE.getValue().equals(controlType)
|
||||||
|
|||||||
Reference in New Issue
Block a user