From 7a848b7e816cd2309e4ab7c3117b7d155db1af01 Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期一, 02 十二月 2024 16:11:29 +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