3.20优化
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user