From d0f5e7edf34a71e31bd2f5fa376bf235b395ec7d Mon Sep 17 00:00:00 2001
From: juzimao <578961953@qq.com>
Date: Wed, 31 Aug 2022 19:53:41 +0800
Subject: [PATCH] optimize the process instance query, change the date time
range (#11719)
---
.../dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml | 4 ++--
1 file changed, 2 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 0b44f6b027..49553621d1 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,8 @@
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