From b1068e27bae3634c2df459fd3dc9a10315cddf4a Mon Sep 17 00:00:00 2001 From: juzimao <578961953@qq.com> Date: Wed, 14 Sep 2022 16:55:10 +0800 Subject: [PATCH] Optimize date range condition (#11911) --- .../dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml index 0972fb7977..87e71a85f2 100644 --- a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml +++ b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml @@ -122,8 +122,11 @@ and instance.name like concat('%', #{searchVal}, '%') - - and instance.start_time = ]]> #{startTime} and instance.start_time #{endTime} + + and instance.start_time = ]]> #{startTime} + + + and instance.start_time #{endTime} and instance.state in