Skip to content

Commit

Permalink
optimize the process instance query, change the date time range (#11719)
Browse files Browse the repository at this point in the history
  • Loading branch information
106umao authored Aug 31, 2022
1 parent 67e7f88 commit d0f5e7e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@
<if test="searchVal != null and searchVal != ''">
and instance.name like concat('%', #{searchVal}, '%')
</if>
<if test="startTime != null ">

This comment has been minimized.

Copy link
@insist777

insist777 Aug 31, 2022

Contributor

Good jobs, SQL expert.

and instance.start_time > #{startTime} and instance.start_time <![CDATA[ <=]]> #{endTime}
<if test="startTime != null and endTime != null ">
and instance.start_time <![CDATA[ >= ]]> #{startTime} and instance.start_time <![CDATA[ <= ]]> #{endTime}
</if>
<if test="states != null and states.length > 0">
and instance.state in
Expand Down

0 comments on commit d0f5e7e

Please sign in to comment.