From 3fe2d018ee29675c724feedf1fed2c8c5f5e38b2 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期三, 17 七月 2024 12:51:44 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/pp/Report.xml |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/Report.xml b/north-glass-erp/src/main/resources/mapper/pp/Report.xml
index f4a1ad2..d43f483 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/Report.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/Report.xml
@@ -118,6 +118,7 @@
         <result column="completed_quantity" property="completedQuantity"/>
         <result column="area" property="area"/>
         <result column="product_name" property="productName"/>
+        <result column="code" property="code"/>
     </resultMap>
 
     <resultMap id="scheduleProductionScheduleMap" type="com.example.erp.dto.pp.ScheduleProductionScheduleDTO">
@@ -1165,7 +1166,8 @@
         od.edging_type,
         rwd.completed_quantity,
         ROUND(MAX( ogd.child_width )*MAX( ogd.child_height )*rwd.completed_quantity/1000000,2) as area,
-        od.product_name
+        od.product_name,
+        JSON_UNQUOTE( JSON_EXTRACT( od.other_columns, '$.S01' )) AS code
         FROM
         reporting_work AS rw
         LEFT JOIN reporting_work_detail AS rwd ON rw.reporting_work_id = rwd.reporting_work_id

--
Gitblit v1.8.0