Commit ef3c3e20cc87b9851d4ab009fbfe73cab7c207c5

Authored by yeqianyong
1 parent 6c901af2

楚江erp:发货计划权限控制调整

... ... @@ -50,14 +50,17 @@ public class ShipmentsPlanServiceImpl extends BaseMpServiceImpl<ShipmentsPlanMap
50 50 List<SysRole> roleList = sysRoleService.getByUserId(currentUserId);
51 51 for (SysRole role : roleList) {
52 52 String roleCode = role.getCode();
  53 + if (StringUtils.isBlank(roleCode)) {
  54 + continue;
  55 + }
53 56 String workshopCode = "";
54   - if ("yfcjybfhy".equals(roleCode) || "yfcjzcjjhy".equals(roleCode)) {
  57 + if (roleCode.startsWith("yfc")) {
55 58 workshopCode = "yfc";
56   - } else if ("efcjybfhy".equals(roleCode) || "efcjzcjjhy".equals(roleCode)) {
  59 + } else if (roleCode.startsWith("efc")) {
57 60 workshopCode = "efc";
58   - } else if ("sfcjybfhy".equals(roleCode) || "sfcjzcjjhy".equals(roleCode)) {
  61 + } else if (roleCode.startsWith("sfc")) {
59 62 workshopCode = "sfc";
60   - } else if ("ztfcjybfhy".equals(roleCode) || "ztfcjzcjjhy".equals(roleCode)) {
  63 + } else if (roleCode.startsWith("ztfc") || roleCode.startsWith("ztc")) {
61 64 workshopCode = "ztfc";
62 65 }
63 66 if (StringUtils.isNotBlank(workshopCode)) {
... ...