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