|
|
@ -745,14 +745,11 @@ public class ErpMaterialServiceImpl implements IErpMaterialService |
|
|
|
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("admin")||roleKeys.contains("gcjlRole") |
|
|
|
||roleKeys.contains("yfzjRole")||roleKeys.contains("dqzgRole")){ |
|
|
|
variables.put("authority",2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|