feat: 删除未符合项批量关闭按钮的数据权限限制
This commit is contained in:
-9
@@ -123,16 +123,8 @@ public class LawsEvaluationNotMetController extends JeroController<LawsEvaluatio
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean check(List<String> ids) {
|
private boolean check(List<String> ids) {
|
||||||
Date date = new Date();
|
|
||||||
LoginUser loginUser = CurrentUserUtil.getLoginUser();
|
|
||||||
String roleIds = loginUser.getRoleIds();
|
|
||||||
String userId = loginUser.getId();
|
|
||||||
List<LawsEvaluationNotMet> notMets = lawsEvaluationNotMetService.listByIds(ids);
|
List<LawsEvaluationNotMet> notMets = lawsEvaluationNotMetService.listByIds(ids);
|
||||||
for (LawsEvaluationNotMet notMet : notMets) {
|
for (LawsEvaluationNotMet notMet : notMets) {
|
||||||
//管理员和设计工程师可以操作未符合项
|
|
||||||
if (!loginUser.getIsAdmin() && !userId.equals(notMet.getEngineerId())){
|
|
||||||
throw new JeroBootException(ResultCommon.NO_PERMISSIONS_PLEASE_SELECT);
|
|
||||||
}
|
|
||||||
String state = notMet.getState();
|
String state = notMet.getState();
|
||||||
//判断是否是待整改,超期,警示
|
//判断是否是待整改,超期,警示
|
||||||
if (!state.equals(AssessCommon.TO_BE_RECTIFIED)
|
if (!state.equals(AssessCommon.TO_BE_RECTIFIED)
|
||||||
@@ -140,7 +132,6 @@ public class LawsEvaluationNotMetController extends JeroController<LawsEvaluatio
|
|||||||
&& !state.equals(AssessCommon.OVERDUE)) {
|
&& !state.equals(AssessCommon.OVERDUE)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user