From bcd4c6fc21eef7abf7e28661bd4f9e1f5cdd2a61 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期一, 09 十二月 2024 16:37: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