Browse Source

[fix]

销售管理 销售订单
修改销售订单设置流程发起人角色service方法,设置主管标识为1,总经理/总助为3;
dev
王晓迪 2 months ago
parent
commit
374dcdd4d2
  1. 4
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesOrderServiceImpl.java

4
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesOrderServiceImpl.java

@ -534,11 +534,11 @@ public class SysSalesOrderServiceImpl implements ISysSalesOrderService
private void buildAuthority(SysUser user, Map<String, Object> variables) {
Set<String> roleKeys = roleService.selectRoleKeys(user.getUserId());
// 角色不同审核人不同
if(roleKeys.contains("ywzgRole")){
if(roleKeys.contains("zozjRole") || roleKeys.contains("zjlRole") || roleKeys.contains("admin")){
variables.put("authority",3);
}else if(roleKeys.contains("ywjlRole")){
variables.put("authority",2);
}else if(roleKeys.contains("ywyRole")){
}else if(roleKeys.contains("ywyRole")||roleKeys.contains("ywzgRole")){
variables.put("authority",1);
}
}

Loading…
Cancel
Save