|
@@ -229,8 +229,7 @@
|
|
|
<if test="factoryId != null and factoryId != '' and factoryId != 'ALL'">and a1.TENANTID = #{factoryId}</if>
|
|
|
|
|
|
<if test="startTime != null and endTime != null ">
|
|
|
- and (#{startTime} between a1.PLANSTARTDATE and a1.PLANENDDATE
|
|
|
- or #{endTime} between a1.PLANSTARTDATE and a1.PLANENDDATE)
|
|
|
+ and not (a1.PLANSTARTDATE > #{endTime} or a1.PLANENDDATE < #{startTime})
|
|
|
</if>
|
|
|
<if test="processids != null ">and a1.PROCESSID in (${processids})</if>
|
|
|
</where>
|