Browse Source

[FIX-5975]queryLastRunningProcess sql in ProcessInstanceMapper.xml (#5980)

atai-555 3 years ago
parent
commit
2afa625a75

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

@@ -191,8 +191,8 @@
             </foreach>
         </if>
         <if test="startTime!=null and endTime != null ">
-            and (schedule_time <![CDATA[ >= ]]> #{startTime} and schedule_time <![CDATA[ <= ]]> #{endTime}
-            or start_time <![CDATA[ >= ]]> #{startTime} and start_time <![CDATA[ <= ]]> #{endTime})
+            and ((schedule_time <![CDATA[ >= ]]> #{startTime} and schedule_time <![CDATA[ <= ]]> #{endTime})
+            or (start_time <![CDATA[ >= ]]> #{startTime} and start_time <![CDATA[ <= ]]> #{endTime}))
         </if>
         order by start_time desc limit 1
     </select>