From c4b9a339caff12e95f61c3d5dc950aafcc8c566c Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期五, 06 六月 2025 16:03: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/FolwCard.xml |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
index 2ef6b1d..0b65025 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -62,7 +62,7 @@
         c.product_name,
         b.project,
         sum(a.quantity) as quantity,
-        sum(c.compute_gross_area) as compute_gross_area,
+        sum(a.quantity) * c.area as compute_gross_area,
         a.founder,
         c.processing_note,
         b.customer_name,
@@ -865,7 +865,8 @@
                od.bend_radius,
                ifnull(od.order_number,0) as heat_layout_id,
                ifnull(a.id,0) as heat_layout_sort,
-               od.product_name
+               od.product_name,
+               opd.process_id
         from pp.optimize_detail opd
                  left join sd.`order` o on SUBSTR(opd.process_id, 1, 10) = o.order_id
                  left join sd.order_detail od
@@ -901,7 +902,8 @@
                od.bend_radius,
                opd.heat_layout_id,
                opd.heat_layout_sort,
-               od.product_name
+               od.product_name,
+               opd.process_id
         from pp.optimize_detail opd
                  left join sd.`order` o on SUBSTR(opd.process_id, 1, 10) = o.order_id
                  left join sd.order_detail od
@@ -2453,7 +2455,7 @@
                               ogd.technology_number = fc.technology_number
         where fc.process_id = #{processId}
           and fc.order_number = #{orderNumber}
-        group by od.order_number, width, height
+        group by fc.process_id,od.order_number, width, height
         order by fc.process_id
     </select>
 
@@ -3070,4 +3072,12 @@
         update  pp.flow_card fc set fc.merge=0
         where fc.process_id = #{processId}
     </update>
+
+    <select id="getProcessName">
+        select IFNULL(nickname,'') from sd.basic_data where basic_category='process' and basic_name=#{processSub}
+    </select>
+
+    <select id="getProcessNameList">
+        SELECT id,basic_name,IFNULL(nickname,"") as nickname FROM sd.`basic_data` where basic_category='process'
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0