From 7e372698c42c047d3b4e629dafe4e7b689990b9d Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期一, 12 五月 2025 19:34:16 +0800
Subject: [PATCH] 钣金计划:从Redis中读取库存信息

---
 aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml
index 623bc32..0575604 100644
--- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml
@@ -285,7 +285,7 @@
         select  id,document_number,main_part_number,item_number,plant,professional_affiliation,production_quantity,
              unmatched_quantity,version
         from aps_plate_plan
-        where  del_flag='0' and professional_affiliation !='0' and unmatched_quantity > 0
+        where  del_flag='0' and professional_affiliation ='sub' and unmatched_quantity > 0
         <if test="plant != null  and plant !='' "> and plant = #{plant}</if>
         <if test="itemNumber != null  and itemNumber !='' "> and item_number = #{itemNumber}</if>
         order by document_number asc,id asc
@@ -300,7 +300,7 @@
     </update>
     <select id="selectPlateRedundantOrderList" parameterType="ApsPlatePlan" resultMap="ApsPlatePlanResult">
         select document_number, item_number, production_quantity, unmatched_quantity, plant, production_base, plan_start_day, plan_end_day, order_create_time
-        from aps_plate_plan where unmatched_quantity>0 and professional_affiliation!='0'
+        from aps_plate_plan where unmatched_quantity>0 and professional_affiliation!='0' and del_flag='0'
         <if test="documentNumber != null and documentNumber != ''">
             and document_number like '%' || #{documentNumber} || '%'
         </if>

--
Gitblit v1.9.3