feat(task): 添加项目任务评分权限控制功能
parent
0d2ff8cd77
commit
80054ff4b4
|
|
@ -114,6 +114,9 @@ public class ProjectTaskQueryExe {
|
||||||
//判断不是企业,并且不是自己
|
//判断不是企业,并且不是自己
|
||||||
if((!CorpInfoE.isCorp() && !AuthContext.getUserId().equals(projectTaskScoreInfoCO.getUserId())) && (AuthContext.getRoleIds()!=null && !AuthContext.getRoleIds().contains(2008483105201106946L))) {
|
if((!CorpInfoE.isCorp() && !AuthContext.getUserId().equals(projectTaskScoreInfoCO.getUserId())) && (AuthContext.getRoleIds()!=null && !AuthContext.getRoleIds().contains(2008483105201106946L))) {
|
||||||
projectTaskScoreInfoCO.setScore(null);
|
projectTaskScoreInfoCO.setScore(null);
|
||||||
|
projectTaskScoreInfoCO.setScoreFlag(false);
|
||||||
|
}else{
|
||||||
|
projectTaskScoreInfoCO.setScoreFlag(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -51,5 +51,8 @@ public class ProjectTaskScoreInfoCO implements Serializable {
|
||||||
@ApiModelProperty(value = "是否评分")
|
@ApiModelProperty(value = "是否评分")
|
||||||
private Boolean isScore;
|
private Boolean isScore;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否可以设置评分")
|
||||||
|
private Boolean scoreFlag;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue