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

Co-authored-by: juzimao <578961953@qq.com>
This commit is contained in:
Kerwin 2022-09-16 19:22:49 +08:00 committed by GitHub
parent 6824c72990
commit 0680282d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,8 +114,8 @@
<if test="searchVal != null and searchVal != ''">
and instance.name like concat('%', #{searchVal}, '%')
</if>
<if test="startTime != null ">
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