|
@@ -54,6 +54,7 @@ import java.util.Collection;
|
|
|
import java.util.Collections;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.HashSet;
|
|
|
+import java.util.LinkedList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.Objects;
|
|
@@ -1130,18 +1131,22 @@ public class WmSupervisionManager {
|
|
|
|
|
|
public List<Integer> getVisibleRoleIds(List<Integer> roles) {
|
|
|
|
|
|
+ List<Integer> roleIds = new LinkedList<>();
|
|
|
+
|
|
|
// 49 生产企业财务部监察员
|
|
|
// 57 生产企业财务部监察负责人
|
|
|
// 51 生产企业财务部监察分管领导
|
|
|
if (CollUtil.containsAny(roles, List.of(49, 57, 51))) {
|
|
|
- return List.of(49);
|
|
|
+ roleIds.add(49);
|
|
|
+ // return List.of(49);
|
|
|
}
|
|
|
|
|
|
// 52 生产企业销售部监察员
|
|
|
// 58 生产企业销售部监察负责人
|
|
|
// 61 生产企业销售部监察分管领导
|
|
|
if (CollUtil.containsAny(roles, List.of(52, 58, 61))) {
|
|
|
- return List.of(52);
|
|
|
+ roleIds.add(52);
|
|
|
+ // return List.of(52);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1149,7 +1154,8 @@ public class WmSupervisionManager {
|
|
|
// 60 营销中心法务合规部监察负责人
|
|
|
// 54 营销中心法务合规部监察分管领导
|
|
|
if (CollUtil.containsAny(roles, List.of(60, 54, 53))) {
|
|
|
- return List.of(53);
|
|
|
+ roleIds.add(53);
|
|
|
+ // return List.of(53);
|
|
|
}
|
|
|
|
|
|
// 56 营销中心财务部监察员
|
|
@@ -1157,10 +1163,11 @@ public class WmSupervisionManager {
|
|
|
// 55 营销中心财务部监察分管领导
|
|
|
|
|
|
if (CollUtil.containsAny(roles, List.of(55, 59, 56))) {
|
|
|
- return List.of(56);
|
|
|
+ roleIds.add(56);
|
|
|
+ // return List.of(56);
|
|
|
}
|
|
|
|
|
|
- return List.of(49, 52, 53, 56);
|
|
|
+ return CollUtil.isNotEmpty(roleIds) ? roleIds : List.of(49, 52, 53, 56);
|
|
|
|
|
|
|
|
|
}
|