|
@@ -191,8 +191,8 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="startTime!=null and endTime != null ">
|
|
|
- and (schedule_time <![CDATA[ >= ]]> #{startTime} and schedule_time <![CDATA[ <= ]]> #{endTime}
|
|
|
- or start_time <![CDATA[ >= ]]> #{startTime} and start_time <![CDATA[ <= ]]> #{endTime})
|
|
|
+ and ((schedule_time <![CDATA[ >= ]]> #{startTime} and schedule_time <![CDATA[ <= ]]> #{endTime})
|
|
|
+ or (start_time <![CDATA[ >= ]]> #{startTime} and start_time <![CDATA[ <= ]]> #{endTime}))
|
|
|
</if>
|
|
|
order by start_time desc limit 1
|
|
|
</select>
|