fix(系统设置): 修复用户管理表格中用户所属组织重复的问题
--bug=1034814 --user=宋天阳 【系统-】用户加入多个组织用户组,在系统用户列表中组织展示多个相同的组织 https://www.tapd.cn/55049933/s/1456320
This commit is contained in:
parent
3d4adabb0f
commit
4923456b6d
|
@ -184,7 +184,7 @@ public class UserRoleRelationService {
|
|||
userInfo.getUserRoleList().add(userRole);
|
||||
}
|
||||
Organization organization = organizationMap.get(userRoleRelation.getSourceId());
|
||||
if (organization != null) {
|
||||
if (organization != null && !userInfo.getOrganizationList().contains(organization)) {
|
||||
userInfo.getOrganizationList().add(organization);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue