From 54ace623f7af0c9daa096fcf394d6c92858de32e Mon Sep 17 00:00:00 2001
From: huangjiayang <5265313@qq.com>
Date: 星期三, 07 五月 2025 13:41:05 +0800
Subject: [PATCH] 【UPDATE】更新标准工艺路线header数据返回字段

---
 aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessRouteHeaderMapper.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessRouteHeaderMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessRouteHeaderMapper.xml
index bed11cf..91b7341 100644
--- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessRouteHeaderMapper.xml
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessRouteHeaderMapper.xml
@@ -6,6 +6,8 @@
     
     <resultMap type="ApsStandardProcessRouteHeader" id="ApsStandardProcessRouteHeaderResult">
         <result property="id"    column="id"    />
+        <result property="itemCode"    column="item_code"    />
+        <result property="drawingNumber"    column="drawing_number"    />
         <result property="routeId"    column="route_id"    />
         <result property="version"    column="version"    />
         <result property="startDate"    column="start_date"    />
@@ -19,7 +21,7 @@
     </resultMap>
 
     <sql id="selectApsStandardProcessRouteHeaderVo">
-        select id, route_id, version, start_date, end_date, org_code, del_flag, create_by, create_time, update_by, update_time from aps_standard_process_route_header
+        select id, route_id, version, start_date, end_date, org_code, del_flag, create_by, create_time, update_by, update_time, item_code, drawing_number from aps_standard_process_route_header
     </sql>
 
     <select id="selectApsStandardProcessRouteHeaderList" parameterType="ApsStandardProcessRouteHeader" resultMap="ApsStandardProcessRouteHeaderResult">
@@ -30,6 +32,9 @@
             <if test="startDate != null  and startDate != ''"> and start_date = #{startDate}</if>
             <if test="endDate != null  and endDate != ''"> and end_date = #{endDate}</if>
             <if test="orgCode != null  and orgCode != ''"> and org_code = #{orgCode}</if>
+            <if test="itemCode != null  and itemCode != ''"> and item_code like '%' || #{itemCode} || '%'</if>
+            <if test="orgCode != null  and orgCode != ''"> and org_code = #{orgCode}</if>
+            and del_flag = '0'
         </where>
     </select>
     

--
Gitblit v1.9.3