Browse Source

The node ID under serial is greater than the current ID. (#9820)

Co-authored-by: WangJPLeo <wangjipeng@whaleops.com>
WangJPLeo 3 years ago
parent
commit
ab2d535e54

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

@@ -250,8 +250,8 @@
         from t_ds_process_instance
         where process_definition_code=#{processDefinitionCode}
         and state = #{state}
-        and id <![CDATA[ < ]]> #{id}
-        order by id desc limit 1
+        and id <![CDATA[ > ]]> #{id}
+        order by id asc limit 1
     </select>
     <update id="updateGlobalParamsById">
         update t_ds_process_instance