Commit 509d2c95 by 翁国栋

8小时后台--

设置超管和管理员不受权限控制
parent c8c017b2
...@@ -763,10 +763,16 @@ public class SpmkController { ...@@ -763,10 +763,16 @@ public class SpmkController {
/*判断是否有权限转派*/ /*判断是否有权限转派*/
if(approvingDto.getUser()!=null){ if(approvingDto.getUser()!=null){
ZzglAuth zzglAuth = ZzglAuth.builder().build().selectOne(new QueryWrapper<ZzglAuth>().lambda().eq(ZzglAuth::getBmgwId,userBean.getUserInfo().getBmgwId()) QyzxEmpEntAsso ent = QyzxEmpEntAsso.builder().build().selectOne(new QueryWrapper<QyzxEmpEntAsso>().lambda().eq(QyzxEmpEntAsso::getOrgCode, userBean.getOrgCode()).eq(QyzxEmpEntAsso::getEmpNum, userBean.getEmpNum()));
.eq(ZzglAuth::getMenuId,"/Approvalcustomshenpi020101")); if(ent != null) {
if(zzglAuth==null){ /*超管和管理员不受权限控制*/
return ResultUtil.error("您没有转派审批人的权限"); if(ent.getUserType() == 2) {
ZzglAuth zzglAuth = ZzglAuth.builder().build().selectOne(new QueryWrapper<ZzglAuth>().lambda().eq(ZzglAuth::getBmgwId, userBean.getUserInfo().getBmgwId())
.eq(ZzglAuth::getMenuId, "/Approvalcustomshenpi020101"));
if (zzglAuth == null) {
return ResultUtil.error("您没有转派审批人的权限");
}
}
} }
} }
Integer asId = approvingDto.getAsId(); Integer asId = approvingDto.getAsId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment