Skip to content

Commit

Permalink
修复查询权限SQL遗漏delete_status='1'的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Heeexy authored Jun 29, 2018
1 parent 17d54fb commit a38db59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions back/src/main/resources/mapper/PermissionMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@
FROM sys_user u
LEFT JOIN sys_role r ON r.id = u.role_id
LEFT JOIN sys_role_permission rp ON u.role_id = rp.role_id
LEFT JOIN sys_permission p ON rp.permission_id = p.id
LEFT JOIN sys_permission p ON rp.permission_id = p.id AND rp.delete_status='1'
WHERE u.username = #{username}
AND u.delete_status='1'
AND rp.delete_status='1'
</select>

<select id="getAllPermission" resultType="String">
Expand Down

0 comments on commit a38db59

Please sign in to comment.