3.17优化

This commit is contained in:
2025-03-17 09:49:22 +08:00
parent d0afc83219
commit c0fc2dc99f
3 changed files with 23 additions and 5 deletions

View File

@ -43,7 +43,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
wgz_daily_clock a
LEFT JOIN wgz_user b ON (a.user_id = b.user_id and b.del_flag = 0)
WHERE
a.user_id = #{req.userId} and a.del_flag = 0
a.user_id = #{req.userId} and
DATE_FORMAT(dily_time, '%Y-%m-%d') = #{req.rq} and
<if test="req.types != 2">
status = #{req.types} and
</if>
a.del_flag = 0
ORDER BY
a.id DESC
</select>