Browse Source

optimize the process instance query, change the date time range (#11719)

3.1.0-release
juzimao 2 years ago committed by GitHub
parent
commit
d0f5e7edf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml

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

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

Loading…
Cancel
Save