Skip to content

Commit 904b735

Browse files
committed
fix: Update user selection query to include only enabled users
1 parent 78271fa commit 904b735

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/crm/src/main/java/cn/cordys/crm/system/mapper/ExtUserRoleMapper.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112

113113
<select id="selectUserDeptForOrg" resultType="cn.cordys.common.dto.DeptUserTreeNode">
114114
select su.id, su.name, sou.department_id as parentId, 'USER' as nodeType from sys_organization_user sou
115-
join sys_user su on sou.organization_id = #{orgId} and sou.user_id = su.id
115+
join sys_user su on sou.organization_id = #{orgId} and sou.user_id = su.id and sou.enable = true
116116
</select>
117117

118118
<select id="selectUserRoleForRelevance" resultType="cn.cordys.common.dto.RoleUserTreeNode">

0 commit comments

Comments
 (0)