From 3535432c9638a0830df8e6a34fbd46a113791d14 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 03 三月 2025 10:23:29 +0800
Subject: [PATCH] 流程推进启动变更bug

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

diff --git a/business/src/main/resources/mapper/ProjectProcessMapper.xml b/business/src/main/resources/mapper/ProjectProcessMapper.xml
index e4f8bdc..a97845f 100644
--- a/business/src/main/resources/mapper/ProjectProcessMapper.xml
+++ b/business/src/main/resources/mapper/ProjectProcessMapper.xml
@@ -77,6 +77,8 @@
         <result column="parent_id" property="parent" />
         <result column="project_owner_unit_name" property="projectOwnerUnitName" />
         <result column="competent_department_name" property="competentDepartmentName" />
+        <result column="process_ins_id" property="processInsId" />
+        <result column="process_def_id" property="processDefId" />
     </resultMap>
 
     <select id="getProjectEngineeringList" parameterType="string" resultMap="EngineeringMap">
@@ -111,9 +113,11 @@
         SELECT
             TT.id, TT.project_info_id, TT.project_name, TT.project_type, TT.investment_amount, TT.status, TT.unit, TT.department, TT.parent_id, TT.year, TT.gmt_create,
             (SELECT  SD.dept_name FROM sys_dept SD WHERE SD.dept_id = TT.unit) AS project_owner_unit_name,
-            (SELECT  SD.dept_name FROM sys_dept SD WHERE SD.dept_id = TT.department) AS competent_department_name
+            (SELECT  SD.dept_name FROM sys_dept SD WHERE SD.dept_id = TT.department) AS competent_department_name,
+            TPP.process_ins_id, TPP.process_def_id
         FROM
             temp_table TT
+                LEFT JOIN t_project_process TPP ON TPP.project_id = TT.id AND TPP.deleted = 0 AND TPP.project_type = 'ENGINEERING'
         ORDER BY
             TT.gmt_create DESC
     </select>

--
Gitblit v1.8.0