优化
This commit is contained in:
@ -40,5 +40,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
a.id DESC
|
||||
</select>
|
||||
|
||||
<select id="bgtLeaveAudit" resultType="com.ruoyi.bgt.domain.vo.BgtAuditResultVO">
|
||||
SELECT
|
||||
a.id,
|
||||
'2' as dataType,
|
||||
a.start_time,
|
||||
a.end_time,
|
||||
a.create_time,
|
||||
a.reason,
|
||||
a.auditor_type,
|
||||
b.username
|
||||
FROM
|
||||
wgz_leave a
|
||||
LEFT JOIN wgz_user b ON (a.user_id = b.user_id and b.del_flag = 0)
|
||||
WHERE
|
||||
a.auditor_user_id = #{dto.auditorUserId}
|
||||
and a.recruit_id in (select id from bgt_project_recruit where task_id = #{dto.taskId})
|
||||
<if test="dto.auditorType != null and dto.auditorType != ''">
|
||||
and a.auditor_type = #{dto.auditorType}
|
||||
</if>
|
||||
<if test="dto.auditorType == null">
|
||||
and a.auditor_type in (0,1,2,3)
|
||||
</if>
|
||||
<if test="dto.date != null">
|
||||
and date(a.create_time) = #{dto.date}
|
||||
</if>
|
||||
ORDER BY
|
||||
a.id DESC
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user