|
|
@@ -219,6 +219,7 @@ public class AdminApiController extends CertifyApiController {
|
|
|
@RequestMapping(value = "/confirmProportion", method = RequestMethod.POST)
|
|
|
public Result confirmProportion(String id, String uid, String sign, Integer status) {
|
|
|
Result res = new Result();
|
|
|
+
|
|
|
if (StringUtils.isBlank(uid)) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到用户", "用户ID"));
|
|
|
return res;
|
|
|
@@ -238,7 +239,7 @@ public class AdminApiController extends CertifyApiController {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "资料完成状态"));
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
OrgCognizanceProportion oo = orgCognizanceProportionService.selectByUid(uid);
|
|
|
if (null == oo && StringUtils.isBlank(id)) {
|
|
|
OrgCognizanceProportion cp = new OrgCognizanceProportion();
|
|
|
@@ -248,6 +249,11 @@ public class AdminApiController extends CertifyApiController {
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+ if (StringUtils.isBlank(id)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到用户", "比重ID"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
OrgCognizanceProportion ocp = orgCognizanceProportionService.selectByPrimaryKey(id);
|
|
|
if (null == ocp) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "比重ID"));
|
|
|
@@ -2302,8 +2308,8 @@ public class AdminApiController extends CertifyApiController {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到用户", "用户"));
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
- if (StringUtils.isBlank(orgTechCenter.getCenterName())){
|
|
|
+
|
|
|
+ if (StringUtils.isBlank(orgTechCenter.getCenterName())) {
|
|
|
res.getError().add(buildError(ErrorConstants.DATA_EMPTY_ERROR, "", "研发部门名称"));
|
|
|
return res;
|
|
|
}
|