diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpBomServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpBomServiceImpl.java index 09ad985e..237a2573 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpBomServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpBomServiceImpl.java @@ -750,14 +750,15 @@ private ISysAttachService attachService; private void buildAuthority(SysUser user, Map variables) { Set roleKeys = roleService.selectRoleKeys(user.getUserId()); // 角色不同审核人不同 - if(roleKeys.contains("yfzjRole") || roleKeys.contains("admin")){ - variables.put("authority",4); - }else if(roleKeys.contains("gczgRole")){ - variables.put("authority",3); - }else if(roleKeys.contains("gcjlRole")){ - variables.put("authority",2); - }else if(roleKeys.contains("gcwyRole")){ + if(roleKeys.contains("gcwyRole")){ variables.put("authority",1); } +// else if(roleKeys.contains("gczgRole")){ +// variables.put("authority",3); +// }else if(roleKeys.contains("gcjlRole")){ +// variables.put("authority",2); +// } +// if(roleKeys.contains("yfzjRole") || roleKeys.contains("admin")){ +// variables.put("authority",4); } }