fix 已添加的用户不能再次出现的对应的添加模态框列表中
This commit is contained in:
+4
@@ -182,6 +182,10 @@
|
|||||||
<if test="user.username != null and user.username != ''">
|
<if test="user.username != null and user.username != ''">
|
||||||
and a.username LIKE CONCAT('%', #{user.username},'%')
|
and a.username LIKE CONCAT('%', #{user.username},'%')
|
||||||
</if>
|
</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>
|
</where>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user