From da497e4c08c46cbde5dfcd7ea0cf2e455ee6f592 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期一, 20 五月 2024 10:36:44 +0800
Subject: [PATCH] 添加发货报表

---
 north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml |    9 +++++++--
 1 files changed, 7 insertions(+), 2 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 f58be6a..9718ead 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -445,7 +445,7 @@
                o.processing_note,
                fc.process_id,
                SUM( od.quantity) as quantity,
-               SUM(od.gross_area) as gross_area,
+               SUM(ogd.total_area) as gross_area,
                SUM(od.weight) as weight,
                #{technologyNumber} as technologyNumber,
                concat(fc.process_id,'/',#{technologyNumber}) as  processIdNumber
@@ -464,7 +464,7 @@
         select fc.order_number,
                concat(ogd.child_width, "*", ogd.child_height) as child_width,
                od.quantity,
-               ogd.total_area,
+               round(ogd.total_area,2) as total_area,
                od.perimeter,
                od.bend_radius,
                od.remarks
@@ -486,4 +486,9 @@
           and technology_number = #{technologyNumber}
         group by process
     </select>
+
+    <update id="updateInventory">
+        update flow_card set inventory_quantity=#{completedQuantity}
+        where process_id = #{processId} and  order_number = #{orderNumber} and technology_number = #{technologyNumber}
+    </update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0