From ab2d535e5451ea05b0da89865176b6612e3d2994 Mon Sep 17 00:00:00 2001 From: WangJPLeo <103574007+WangJPLeo@users.noreply.github.com> Date: Thu, 28 Apr 2022 11:00:33 +0800 Subject: [PATCH] The node ID under serial is greater than the current ID. (#9820) Co-authored-by: WangJPLeo --- .../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 8910bf0532..2e49ce9b5b 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 @@ -250,8 +250,8 @@ from t_ds_process_instance where process_definition_code=#{processDefinitionCode} and state = #{state} - and id #{id} - order by id desc limit 1 + and id ]]> #{id} + order by id asc limit 1 update t_ds_process_instance