Browse Source

Optimize date range condition (#11911)

3.1.0-release
juzimao 2 years ago committed by caishunfeng
parent
commit
8c6658e3f9
  1. 7
      dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml

7
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml

@ -122,8 +122,11 @@
<if test="searchVal != null and searchVal != ''">
and instance.name like concat('%', #{searchVal}, '%')
</if>
<if test="startTime != null and endTime != null ">
and instance.start_time <![CDATA[ >= ]]> #{startTime} and instance.start_time <![CDATA[ <= ]]> #{endTime}
<if test="startTime != null">
and instance.start_time <![CDATA[ >= ]]> #{startTime}
</if>
<if test="endTime != null">
and instance.start_time <![CDATA[ <= ]]> #{endTime}
</if>
<if test="states != null and states.length > 0">
and instance.state in

Loading…
Cancel
Save