From c9128daf5216f13246ad5c5a8976fe04cbe7568d Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 20 二月 2025 11:32:50 +0800
Subject: [PATCH] 任务回显bug

---
 flowable/src/main/resources/mapper/FlowDeployMapper.xml |   56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 55 insertions(+), 1 deletions(-)

diff --git a/flowable/src/main/resources/mapper/FlowDeployMapper.xml b/flowable/src/main/resources/mapper/FlowDeployMapper.xml
index 754f6ce..f1d880a 100644
--- a/flowable/src/main/resources/mapper/FlowDeployMapper.xml
+++ b/flowable/src/main/resources/mapper/FlowDeployMapper.xml
@@ -6,7 +6,6 @@
 
 
     <select id="selectDeployList" resultType="com.ycl.domain.dto.FlowProcDefDto">
-
         SELECT
             rp.id_ as id,
             rp.deployment_id_ as deploymentId,
@@ -28,4 +27,59 @@
     </select>
 
 
+    <select id="selectDeployListWithConfig" resultType="com.ycl.domain.dto.FlowProcDefWithConfigDto">
+        SELECT
+        rp.id_ as id,
+        rp.deployment_id_ as deploymentId,
+        rd.name_ as name,
+        rd.category_ as category,
+        rp.key_ as flowKey,
+        rp.version_ as version,
+        rp.suspension_state_ as suspensionState,
+        rd.deploy_time_  as deploymentTime,
+        pc.project_type,
+        pc.fund_type,
+        pc.invest_type,
+        pc.importance_type,
+        pc.process_def_id,
+        pc.process_def_version,
+        pc.deploy_id
+        FROM
+        act_re_procdef rp
+        LEFT JOIN act_re_deployment rd ON rp.deployment_id_ = rd.id_
+        LEFT JOIN t_process_config_info pc ON pc.process_def_id = rp.id_ AND pc.process_def_version = rp.version_
+        <where>
+        </where>
+        order by rd.deploy_time_ desc
+    </select>
+
+    <select id="selectDeployListWithConfigPage"  resultType="com.ycl.domain.dto.FlowProcDefWithConfigDto">
+        SELECT
+            rp.id_ as id,
+            rp.deployment_id_ as deploymentId,
+            rd.name_ as name,
+            rd.category_ as category,
+            rp.key_ as flowKey,
+            rp.version_ as version,
+            rp.suspension_state_ as suspensionState,
+            rd.deploy_time_  as deploymentTime,
+            pc.project_type,
+            pc.fund_type,
+            pc.invest_type,
+            pc.importance_type,
+            pc.process_def_id,
+            pc.process_def_version,
+            pc.deploy_id
+        FROM
+        act_re_procdef rp
+            LEFT JOIN act_re_deployment rd ON rp.deployment_id_ = rd.id_
+            LEFT JOIN t_process_config_info pc ON pc.process_def_id = rp.id_ AND pc.process_def_version = rp.version_
+        <where>
+            <if test="query.name != null and query.name != ''">
+                AND rd.name_ like concat('%', #{query.name}, '%')
+            </if>
+        </where>
+        order by rd.deploy_time_ desc
+    </select>
+
 </mapper>

--
Gitblit v1.8.0