From a7d5b34a0fa720e5fd3dce1975e9dee94774a78e Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期一, 01 九月 2025 09:31:40 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/pp/GlassOptimize.xml |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/GlassOptimize.xml b/north-glass-erp/src/main/resources/mapper/pp/GlassOptimize.xml
index 2a1f455..544545d 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/GlassOptimize.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/GlassOptimize.xml
@@ -473,7 +473,7 @@
     <!--搴撳瓨淇℃伅-->
     <select id="materialStoreMp">
         SELECT
-            i.id AS id,
+            i.material_code AS id,
             i.producer AS producer,
             i.available_quantity-i.plan_quantity AS available_quantity,
             null as processingQuantity,
@@ -570,7 +570,7 @@
 
 
     <select id="materialStoreOptimizeUse">
-        select ms.id AS id,
+        select ou.raw_stock_code AS id,
                ou.use_count AS processingQuantity,
                ou.width,
                ou.height,
@@ -1776,7 +1776,9 @@
             opd.glass_id as glassId,
             opd.project_no as engineerId,
             opd.process_id as flowCardId,
-            opd.order_sort as orderNumber,
+            od.order_id as orderNumber,
+            opd.order_sort as productSortNumber,
+            IF(LOCATE('涓┖', ogd.process ) > 0, JSON_UNQUOTE(JSON_EXTRACT(pd.separation, "$.lowE")), 0) as hollowCombineDirection,
             opd.o_width as width,
             opd.o_height as height,
             op.glass_thickness as thickness,
@@ -1815,6 +1817,7 @@
                 and ogd.technology_number = fc.technology_number
                 left join pp.optimize_heat_detail ohd on ohd.layout_id = opd.heat_layout_id
                 and ohd.sort = opd.heat_layout_sort and ohd.project_no=opd.project_no
+                left join sd.product_detail pd on od.product_id=pd.prod_id and opd.layer=pd.glass_sort
         where
             opd.project_no = #{projectNo}
     </select>

--
Gitblit v1.8.0