fix(系统设置): 修复用户管理表格中用户所属组织重复的问题

--bug=1034814 --user=宋天阳 【系统-】用户加入多个组织用户组,在系统用户列表中组织展示多个相同的组织 https://www.tapd.cn/55049933/s/1456320
This commit is contained in:
song-tianyang 2024-01-30 18:39:45 +08:00 committed by 刘瑞斌
parent 3d4adabb0f
commit 4923456b6d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}