|
|
@ -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);
|
|
|
|
} |
|
|
|
} |
|
|
|