feat: 增强登录用户查询功能,支持用户状态过滤

- 在SysLoginUserMapper.xml中新增userStatus条件查询
- 支持按用户状态筛选登录用户和统计数据
- 优化数据查询的精确性和灵活性
This commit is contained in:
Leo 2025-07-06 00:54:38 +08:00
parent f3bc4ace1f
commit 83c7669c73

View File

@ -37,6 +37,9 @@
<if test="vo.endTime != null and vo.endTime != ''"> <if test="vo.endTime != null and vo.endTime != ''">
AND t1.login_time &lt;= #{vo.endTime} AND t1.login_time &lt;= #{vo.endTime}
</if> </if>
<if test="vo.userStatus != null and vo.userStatus != ''">
AND t1.user_status = #{vo.userStatus}
</if>
AND AND
t1.user_id != 1 t1.user_id != 1
</where> </where>
@ -77,6 +80,9 @@
<if test="vo.endTime != null and vo.endTime != ''"> <if test="vo.endTime != null and vo.endTime != ''">
AND t1.login_time &lt;= #{vo.endTime} AND t1.login_time &lt;= #{vo.endTime}
</if> </if>
<if test="vo.userStatus != null and vo.userStatus != ''">
AND t1.user_status = #{vo.userStatus}
</if>
</where> </where>
</select> </select>
</mapper> </mapper>