mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-31 08:14:18 +08:00
🐛 Fixing a bug. 412 用户查询逻辑删除bugfix
This commit is contained in:
parent
ba7d178a48
commit
19be64fdf1
@ -103,8 +103,8 @@
|
|||||||
FROM
|
FROM
|
||||||
sys_user u
|
sys_user u
|
||||||
LEFT JOIN sys_user_role urole ON urole.user_id = u.user_id
|
LEFT JOIN sys_user_role urole ON urole.user_id = u.user_id
|
||||||
LEFT JOIN sys_role r ON r.role_id = urole.role_id
|
LEFT JOIN sys_role r ON r.role_id = urole.role_id and r.del_flag = '0'
|
||||||
WHERE u.username = #{username}
|
WHERE u.username = #{username} and u.del_flag = '0'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getUserVoById" resultMap="baseResultMap">
|
<select id="getUserVoById" resultMap="baseResultMap">
|
||||||
@ -112,9 +112,9 @@
|
|||||||
<include refid="userRoleDeptSql"/>
|
<include refid="userRoleDeptSql"/>
|
||||||
FROM
|
FROM
|
||||||
sys_user u
|
sys_user u
|
||||||
LEFT JOIN sys_dept d ON d.dept_id = u.dept_id
|
LEFT JOIN sys_dept d ON d.dept_id = u.dept_id and d.del_flag = '0'
|
||||||
WHERE
|
WHERE
|
||||||
u.user_id = #{id}
|
u.user_id = #{id} and u.del_flag = '0'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getUserVosPage" resultMap="baseResultMap">
|
<select id="getUserVosPage" resultMap="baseResultMap">
|
||||||
|
Loading…
Reference in New Issue
Block a user