Browse Source

[feat]BOM信息: 添加BOM文件改为只有工程员能够添加bom列表,工程部门经理、主管、研发总监改为只有审核权限。

dev
zhangsiqi 4 months ago
parent
commit
dc10a8c759
  1. 15
      ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpBomServiceImpl.java

15
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<String, Object> variables) {
Set<String> 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);
}
}

Loading…
Cancel
Save