From c99bdaaa03bd04f0ecdc0dda8a5b1d9552ea48ad Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期四, 12 十二月 2024 10:21:21 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 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 e43b65a..594e17e 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -2509,4 +2509,30 @@
         update sd.order_glass_detail set process=#{orderprocess}
         where order_id=#{orderId} and order_number=#{number} and technology_number=#{technologyNumber}
     </update>
+
+    <select id="getFlowCardListPrintProject">
+        select
+            od.order_id,
+            fc.process_id,
+            o.customer_name,
+            o.project,
+            od.order_number,
+            ogd.technology_number,
+            ogd.glass_address,
+            fc.quantity ,
+            round(sum(ogd.child_width * ogd.child_height * fc.quantity / 1000000), 2) as total_area,
+            od.product_name,
+            ogd.glass_child,
+
+            ogd.process
+        from  (select process_id,count(*) as quantity,order_sort,project_no,layer from pp.optimize_detail where project_no = #{printProject} group by process_id,layer) as fc
+                  left join sd.order_glass_detail as ogd
+                            on ogd.order_id = SUBSTRING(fc.process_id,1,10)  and ogd.order_number = fc.order_sort and
+                               ogd.technology_number = fc.layer
+                  left join sd.order_detail as od on od.order_id = SUBSTRING(fc.process_id,1,10)  and od.order_number = fc.order_sort
+                  left join sd.`order` as o on o.order_id = SUBSTRING(fc.process_id,1,10)
+        where fc.project_no = #{printProject}
+        GROUP BY fc.process_id, ogd.technology_number
+        order by fc.process_id, ogd.technology_number
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0