From 74da9dfb5fb4085d8847d4c74a97048c6c677514 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 15 一月 2025 10:53:34 +0800
Subject: [PATCH] 完成任务bug(协同办理的才resolveTask)、转办前如果是指定人员删除不掉问题、提取获取运行时任务信息的方法

---
 business/src/main/resources/mapper/ProjectProcessMapper.xml |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/business/src/main/resources/mapper/ProjectProcessMapper.xml b/business/src/main/resources/mapper/ProjectProcessMapper.xml
index 1e3cf70..aa8f67a 100644
--- a/business/src/main/resources/mapper/ProjectProcessMapper.xml
+++ b/business/src/main/resources/mapper/ProjectProcessMapper.xml
@@ -18,7 +18,6 @@
         <result column="area_code" property="areaCode" />
 <!--        <result column="management_centralization" property="managementCentralization" />-->
         <result column="project_approval_type" property="projectApprovalType" />
-        <result column="investment_catalogue" property="investmentCatalogue" />
         <result column="importance_type" property="importanceType" />
         <result column="year" property="year" />
         <result column="year_invest_amount" property="yearInvestAmount" />
@@ -38,7 +37,8 @@
         <result column="gmt_update_time" property="gmtUpdateTime" />
         <result column="update_by" property="updateBy" />
         <result column="create_by" property="createBy" />
-        <result column="flowable_process_id" property="flowableProcessId" />
+        <result column="process_def_id" property="processDefId" />
+        <result column="process_ins_id" property="processInsId" />
 <!--        <association property="id" column=""-->
     </resultMap>
 
@@ -48,7 +48,7 @@
     <select id="getById" resultMap="BaseResultMap">
         SELECT
             TPP.project_id,
-            TPP.flowable_process_id,
+            TPP.process_def_id,
             TPP.id
         FROM
             t_project_process TPP
@@ -60,7 +60,8 @@
     <select id="getPage" resultMap="BaseResultMap">
         SELECT
             PI.*,
-            TPP.flowable_process_id
+            TPP.process_def_id,
+            TPP.process_ins_id
         FROM
             t_project_info PI
                 LEFT JOIN t_project_process TPP ON TPP.project_id = PI.id AND TPP.deleted = 0 AND PI.deleted = 0
@@ -75,4 +76,13 @@
 
     </select>
 
+
+    <select id="getProjectInfo" parameterType="string" resultType="com.ycl.domain.entity.ProjectInfo">
+        SELECT
+               PI.id, PI.project_name
+        FROM
+             t_project_process PP
+                 INNER JOIN t_project_info PI ON PP.project_id = PI.id AND PI.deleted = 0 AND PP.process_ins_id = #{processInsId}
+    </select>
+
 </mapper>

--
Gitblit v1.8.0