fix(system): 修复查询条件添加已安装标记过滤
- 在UserMapper的查询中新增过滤条件,确保只查询已安装用户 - 优化查询逻辑,避免结果包含未安装用户 - 保持排序顺序不变,优先根据最后登录时间排序 - 增强系统数据准确性和筛选能力
This commit is contained in:
@@ -399,6 +399,7 @@
|
|||||||
AND u.status = 0
|
AND u.status = 0
|
||||||
AND u.phone = #{phone}
|
AND u.phone = #{phone}
|
||||||
AND u.is_super_admin = 1
|
AND u.is_super_admin = 1
|
||||||
|
AND u.installed = 1
|
||||||
ORDER BY lr.last_login_time DESC,
|
ORDER BY lr.last_login_time DESC,
|
||||||
u.update_time DESC,
|
u.update_time DESC,
|
||||||
u.create_time DESC,
|
u.create_time DESC,
|
||||||
|
|||||||
Reference in New Issue
Block a user