From a080d67b9964cd632f52c481c0f20ef2e3e7073a Mon Sep 17 00:00:00 2001
From: sfd <sun.sunshine@163.com>
Date: 星期五, 09 五月 2025 10:19:07 +0800
Subject: [PATCH] 放开权限

---
 aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessRouteHeaderMapper.xml |   19 ++++++++++++++++++-
 1 files changed, 18 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..7b152eb 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,11 +6,14 @@
     
     <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"    />
         <result property="endDate"    column="end_date"    />
         <result property="orgCode"    column="org_code"    />
+        <result property="processAllTime"    column="process_all_time"    />
         <result property="delFlag"    column="del_flag"    />
         <result property="createBy"    column="create_by"    />
         <result property="createTime"    column="create_time"    />
@@ -19,7 +22,9 @@
     </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, process_all_time
+        from aps_standard_process_route_header
     </sql>
 
     <select id="selectApsStandardProcessRouteHeaderList" parameterType="ApsStandardProcessRouteHeader" resultMap="ApsStandardProcessRouteHeaderResult">
@@ -30,6 +35,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>
     
@@ -95,4 +103,13 @@
             #{id}
         </foreach>
     </delete>
+
+    <select id="queryStandardProcessRouteHeaderByPlantAndItemCode" parameterType="String" resultMap="ApsStandardProcessRouteHeaderResult">
+        <include refid="selectApsStandardProcessRouteHeaderVo"/>
+        <where>
+            <if test="orgCode != null  and orgCode != ''"> and org_code = #{orgCode}</if>
+            <if test="itemCode != null  and itemCode != ''"> and item_code = #{itemCode} </if>
+            and del_flag = '0'
+        </where>
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3