From 4f2d46213d1f6c975228e945f16b0a7eb70bb249 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期三, 05 六月 2024 16:50:36 +0800
Subject: [PATCH] 添加班组产量明细报表,添加缺少功能

---
 north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 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 b42f279..3cdf98d 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -191,7 +191,7 @@
         od.product_name,
         SUM( od.quantity) as quantity,
         SUM(od.compute_gross_area) as compute_gross_area,
-        sum(od.perimeter) as perimeter
+        round(sum(od.perimeter),2) as perimeter
         from sd.order_detail as od left join
         (select order_id,order_number,production_id,splitting_status from sd.order_glass_detail
         GROUP BY order_id,order_number
@@ -537,8 +537,8 @@
                  left join flow_card as d
                            on d.order_id = a.order_id and d.order_number = a.order_number and
                               d.technology_number = a.technology_number
-                 left join sd.product e
-                           on e.id = b.product_id
+                 left join sd.basic_glass_type e
+                           on e.type_id = b.product_id
         where d.process_id = #{processId}
           and d.technology_number = #{technologyNumber}
         group by a.glass_child, a.child_width, a.child_height

--
Gitblit v1.8.0