yxk-20260610-接口优化:获取某个用户的所有所在部门的id和部门名
增加d.del_flag = 0条件
This commit is contained in:
+1
@@ -79,6 +79,7 @@
|
|||||||
INNER JOIN sys_user_depart ud ON d.id = ud.dep_id
|
INNER JOIN sys_user_depart ud ON d.id = ud.dep_id
|
||||||
INNER JOIN sys_user u ON ud.user_id = u.id
|
INNER JOIN sys_user u ON ud.user_id = u.id
|
||||||
<where>
|
<where>
|
||||||
|
AND d.del_flag = 0
|
||||||
<if test="userName != null and userName != ''">
|
<if test="userName != null and userName != ''">
|
||||||
AND u.username = #{userName}
|
AND u.username = #{userName}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user