Browse Source

租户-业务团队-业务员管理 业务员列表中类型混乱,有的是前线,有的是个代,有的是团队

lipf 1 month ago
parent
commit
e6f17f9cf6

+ 6 - 1
tenant/organization/src/main/java/com/jzg/organization/service/impl/SysUserServiceImpl.java

@@ -239,7 +239,12 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
                     action.setDefaultSelected(true);
                     action.setDefaultSelected(true);
                 }
                 }
                 String typeAttr = attrTypeMap.getOrDefault(action.getId(),null);
                 String typeAttr = attrTypeMap.getOrDefault(action.getId(),null);
-                action.setTypeAttr(typeAttr);
+                // 在【业务员管理页面】 要求类型中,不展示1,2,3,4 对应的类型
+                if(StrUtil.isNotEmpty(typeAttr)){
+                    Set<String> set = Set.of("1","2","3");
+                    typeAttr = Arrays.stream(typeAttr.split(",")).filter(action1-> !set.contains(action1)).collect(Collectors.joining(","));
+                    action.setTypeAttr(typeAttr);
+                }
                 List<SysRole> userRole = sysUserRoleService.getUserRole(action.getUserId());
                 List<SysRole> userRole = sysUserRoleService.getUserRole(action.getUserId());
                 if(CollectionUtil.isNotEmpty(userRole)){
                 if(CollectionUtil.isNotEmpty(userRole)){
                     String roleNames = userRole.stream().map(SysRole::getName).distinct().collect(Collectors.joining(","));
                     String roleNames = userRole.stream().map(SysRole::getName).distinct().collect(Collectors.joining(","));