Skip to content

Commit

Permalink
!412 用户查询逻辑删除bugfix
Browse files Browse the repository at this point in the history
Merge pull request !412 from IzayoiYurin/dev
  • Loading branch information
lltx authored and gitee-org committed Aug 27, 2023
2 parents fda7d4c + 1706925 commit 73a1b2a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,18 @@
FROM
sys_user u
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
WHERE u.username = #{username}
LEFT JOIN sys_role r ON r.role_id = urole.role_id and r.del_flag = '0'
WHERE u.username = #{username} and u.del_flag = '0'
</select>

<select id="getUserVoById" resultMap="baseResultMap">
SELECT
<include refid="userRoleDeptSql"/>
FROM
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
u.user_id = #{id}
u.user_id = #{id} and u.del_flag = '0'
</select>

<select id="getUserVosPage" resultMap="baseResultMap">
Expand Down

0 comments on commit 73a1b2a

Please sign in to comment.