3.20优化

This commit is contained in:
2025-03-20 15:22:06 +08:00
parent 7ce41a73f6
commit 7fcb637b1e
19 changed files with 126 additions and 46 deletions

View File

@ -34,8 +34,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM
wgz_leave a
LEFT JOIN bgt_user b ON (a.auditor_user_id = b.user_id and b.del_flag = 0)
WHERE
a.del_flag = 0
<where>
a.user_id = #{req.userId}
and a.del_flag = 0
<if test="req.recruitId != null and req.recruitId != 0">
and a.recruit_id = #{req.recruitId}
</if>
<if test="req.rq != null">
and DATE_FORMAT(a.create_time,'%Y-%m-%d') = #{req.rq}
</if>
</where>
ORDER BY
a.id DESC
</select>