1.季度审核评价编辑页面完善管理员打分
This commit is contained in:
parent
15c3c3159a
commit
107efc0241
@ -66,7 +66,7 @@ public class ProjectAssessmentIndicatorsController implements ProjectAssessmentI
|
|||||||
ProjectAssessmentIndicators indicators = pageNoUtil.getT();
|
ProjectAssessmentIndicators indicators = pageNoUtil.getT();
|
||||||
if (!ObjectUtils.isEmpty(indicators)) {
|
if (!ObjectUtils.isEmpty(indicators)) {
|
||||||
Long id = indicators.getId();
|
Long id = indicators.getId();
|
||||||
if (id == null) return ApiResponse.fillFail("操作异常!");
|
if (ObjectUtils.isEmpty(id)) return ApiResponse.fillFail("操作异常!");
|
||||||
JSONObject ext = indicators.getExt();
|
JSONObject ext = indicators.getExt();
|
||||||
if (!ObjectUtils.isEmpty(ext)) {
|
if (!ObjectUtils.isEmpty(ext)) {
|
||||||
//如果ext里面有所项目管理员打分字段,先判断当前账号是否是管理员
|
//如果ext里面有所项目管理员打分字段,先判断当前账号是否是管理员
|
||||||
@ -74,9 +74,10 @@ public class ProjectAssessmentIndicatorsController implements ProjectAssessmentI
|
|||||||
if (!StringUtils.isEmpty(adminScoring) && !"null".equals(adminScoring)) {
|
if (!StringUtils.isEmpty(adminScoring) && !"null".equals(adminScoring)) {
|
||||||
String projectAdmin = String.valueOf(ext.get("projectAdmin"));
|
String projectAdmin = String.valueOf(ext.get("projectAdmin"));
|
||||||
if (userId != null && !StringUtils.isEmpty(projectAdmin)) {
|
if (userId != null && !StringUtils.isEmpty(projectAdmin)) {
|
||||||
if (!userId.equals(projectAdmin)) {//如果当前账号不是管理员直接返回
|
if (!String.valueOf(userId).equals(projectAdmin)) {//如果当前账号不是管理员直接返回
|
||||||
return ApiResponse.fillFail("你不是所项目管理员无法打分!");
|
return ApiResponse.fillFail("你不是所项目管理员无法打分!");
|
||||||
}
|
}
|
||||||
|
indicatorsService.updateById(indicators);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user