From dec8951aae400e54f6ee83a8f95867dba9da8af1 Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期五, 23 五月 2025 17:17:33 +0800
Subject: [PATCH] [钣金计划大表] 优化:焊缝统计导出Excel样式

---
 aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessRouteHeaderMapper.xml |    5 +----
 1 files changed, 1 insertions(+), 4 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 afc8436..7747fbe 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
@@ -36,7 +36,6 @@
             <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>
         ORDER BY version desc
@@ -107,11 +106,9 @@
 
     <select id="queryStandardProcessRouteHeaderByPlantAndItemCode" parameterType="String" resultMap="ApsStandardProcessRouteHeaderResult">
         <include refid="selectApsStandardProcessRouteHeaderVo"/>
-        <where>
+         where del_flag = '0'
             <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>
     
     <select id="selectProcessRouteStandardTimeData" parameterType="String" resultType="com.alibaba.fastjson2.JSONObject">

--
Gitblit v1.9.3