feat(UserMapper): 修改用户查询条件
- 将用户查询条件从用户名改为 openid - 此修改使得系统能够根据 openid 获取用户信息,提高了安全性
This commit is contained in:
@@ -156,7 +156,7 @@
|
||||
LEFT JOIN sys_user_role t2 ON t2.user_id = t1.id
|
||||
LEFT JOIN sys_role t3 ON t3.id = t2.role_id
|
||||
WHERE
|
||||
t1.username = #{username} AND t1.is_deleted = 0
|
||||
t1.openid = #{openid} AND t1.is_deleted = 0
|
||||
</select>
|
||||
|
||||
<!-- 获取用户导出列表 -->
|
||||
|
||||
Reference in New Issue
Block a user