fix:项目管理列表查询条件优化
parent
7ffd5135cc
commit
e036fe7e10
|
|
@ -204,13 +204,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lastWorkUpdateTimeStart != null or lastWorkUpdateTimeEnd != null">
|
||||
<choose>
|
||||
<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 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 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>
|
||||
|
||||
</choose>
|
||||
|
|
|
|||
Loading…
Reference in New Issue