fix:项目管理列表查询条件优化

dev_1.0.2
UNISINSIGHT\rdpnr_jiangpeng 2026-04-03 10:28:41 +08:00
parent 7ffd5135cc
commit e036fe7e10
1 changed files with 3 additions and 3 deletions

View File

@ -204,13 +204,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="lastWorkUpdateTimeStart != null or lastWorkUpdateTimeEnd != null"> <if test="lastWorkUpdateTimeStart != null or lastWorkUpdateTimeEnd != null">
<choose> <choose>
<when test="lastWorkUpdateTimeStart != null and lastWorkUpdateTimeEnd != null"> <when test="lastWorkUpdateTimeStart != null and lastWorkUpdateTimeEnd != null">
and t4.work_time between date_format(#{lastWorkUpdateTimeStart}, '%Y-%m-%d 00:00:00') and date_format(#{lastWorkUpdateTimeEnd}, '%Y-%m-%d 23:59:59') and ifnull(t4.work_time,t1.update_time) between date_format(#{lastWorkUpdateTimeStart}, '%Y-%m-%d 00:00:00') and date_format(#{lastWorkUpdateTimeEnd}, '%Y-%m-%d 23:59:59')
</when> </when>
<when test="lastWorkUpdateTimeStart != null"> <when test="lastWorkUpdateTimeStart != null">
and t4.work_time <![CDATA[ >= ]]> date_format(#{lastWorkUpdateTimeStart}, '%Y-%m-%d 00:00:00') and ifnull(t4.work_time,t1.update_time) <![CDATA[ >= ]]> date_format(#{lastWorkUpdateTimeStart}, '%Y-%m-%d 00:00:00')
</when> </when>
<when test="lastWorkUpdateTimeEnd != null"> <when test="lastWorkUpdateTimeEnd != null">
and t4.work_time <![CDATA[ <= ]]> date_format(#{lastWorkUpdateTimeEnd}, '%Y-%m-%d 23:59:59') and ifnull(t4.work_time,t1.update_time) <![CDATA[ <= ]]> date_format(#{lastWorkUpdateTimeEnd}, '%Y-%m-%d 23:59:59')
</when> </when>
</choose> </choose>