优化检查

This commit is contained in:
andy 2026-03-09 13:26:40 +08:00
parent 5be8266d4a
commit ae49e240c7

View File

@ -106,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from rz_leave_detail d left join rz_leave l on d.leave_id = l.id
where l.user_id = #{userId}
and l.del_flag = '0'
and d.del_flag = '0'
and DATE_FORMAT( d.leave_start_time, '%Y%m%d' ) <= DATE_FORMAT(#{date} , '%Y%m%d' )
and DATE_FORMAT( d.leave_end_time, '%Y%m%d' ) >= DATE_FORMAT(#{date} , '%Y%m%d' )