fix 已添加的用户不能再次出现的对应的添加模态框列表中

This commit is contained in:
lijiarao
2021-08-30 18:28:30 +08:00
parent 22ea444a11
commit b19348d5f6
@@ -182,6 +182,10 @@
<if test="user.username != null and user.username != ''">
and a.username LIKE CONCAT('%', #{user.username},'%')
</if>
<if test="user.orgCode != null and user.orgCode != ''">
and a.id not in (select user_id from sys_user_depart where dep_id =
(select id from sys_depart where org_code = #{user.orgCode}))
</if>
</where>
</select>