From 8cd3db85aea597e840b0a3488fba07f55a299cf4 Mon Sep 17 00:00:00 2001 From: wangli <274027703@qq.com> Date: Wed, 24 Jan 2024 17:28:59 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E8=BF=AD=E4=BB=A3=E7=9A=84=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/sql/upgrade_to_130.sql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/workflow-engine-core/src/main/resources/sql/upgrade_to_130.sql b/workflow-engine-core/src/main/resources/sql/upgrade_to_130.sql index d00b104a9..4417504bd 100644 --- a/workflow-engine-core/src/main/resources/sql/upgrade_to_130.sql +++ b/workflow-engine-core/src/main/resources/sql/upgrade_to_130.sql @@ -9,4 +9,11 @@ where END_TIME_ is null and ID_ not in (select distinct task_id from ext_ax_hi_taskinst); +-- 清洗发起人数据 +insert into ext_ax_hi_taskinst (proc_inst_id, task_id, task_definition_key, status, assignee) +select PROC_INST_ID_, ID_, TASK_DEF_KEY_, 'APPROVED', ifnull(ASSIGNEE_, '') as ASSIGNEE_ +from act_hi_taskinst +where PROC_INST_ID_ in (select PROC_INST_ID_ from act_hi_taskinst) + and TASK_DEF_KEY_ = 'NODE_STARTER' + and ID_ not in (select task_id from ext_ax_hi_taskinst where task_definition_key = 'NODE_STARTER');