feat: 增强登录用户查询功能,支持用户状态过滤
- 在SysLoginUserMapper.xml中新增userStatus条件查询 - 支持按用户状态筛选登录用户和统计数据 - 优化数据查询的精确性和灵活性
This commit is contained in:
parent
f3bc4ace1f
commit
83c7669c73
@ -37,6 +37,9 @@
|
||||
<if test="vo.endTime != null and vo.endTime != ''">
|
||||
AND t1.login_time <= #{vo.endTime}
|
||||
</if>
|
||||
<if test="vo.userStatus != null and vo.userStatus != ''">
|
||||
AND t1.user_status = #{vo.userStatus}
|
||||
</if>
|
||||
AND
|
||||
t1.user_id != 1
|
||||
</where>
|
||||
@ -77,6 +80,9 @@
|
||||
<if test="vo.endTime != null and vo.endTime != ''">
|
||||
AND t1.login_time <= #{vo.endTime}
|
||||
</if>
|
||||
<if test="vo.userStatus != null and vo.userStatus != ''">
|
||||
AND t1.user_status = #{vo.userStatus}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user