From ceaf0a5df9286a5f3d0384c95aa82c4e8459ada5 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期四, 12 十二月 2024 12:04:17 +0800
Subject: [PATCH] 修改工程流程卡打印补片部分

---
 north-glass-erp/src/main/resources/mapper/mm/FinishedOperateLog.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/mm/FinishedOperateLog.xml b/north-glass-erp/src/main/resources/mapper/mm/FinishedOperateLog.xml
index af02bfb..7f1c91f 100644
--- a/north-glass-erp/src/main/resources/mapper/mm/FinishedOperateLog.xml
+++ b/north-glass-erp/src/main/resources/mapper/mm/FinishedOperateLog.xml
@@ -813,7 +813,8 @@
     o.customer_name,
     o.project,
     fol.remarks,
-    SUM(fol.quantity) as quantity
+    SUM(fol.quantity) as quantity,
+    ROUND( sum(od.width * od.height * fol.quantity) / 1000000, 2 ) as area
     from (select *
     from mm.finished_operate_log aa where aa.operate_type = '鍏ュ簱'  and aa.status!='宸蹭綔搴�') fol
     left join sd.order_detail od on fol.order_id = od.order_id and fol.operation_number = od.order_number

--
Gitblit v1.8.0