From 50efd9f19463da742e8c7b751bb4ab2c97acbf61 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期一, 01 七月 2024 13:13:15 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml |    8 ++++++--
 1 files changed, 6 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 ec2c559..344e39b 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -571,13 +571,15 @@
                ogd.child_width,
                ogd.child_height,
                fc.quantity,
-               ROUND(ogd.child_width * ogd.child_height * fc.quantity / 1000000, 2) as area
+               ROUND(ogd.child_width * ogd.child_height * fc.quantity / 1000000, 2) as area,
+               fc.sort
         FROM flow_card AS fc
                  LEFT JOIN sd.order_glass_detail AS ogd ON fc.order_id = ogd.order_id
             AND fc.order_number = ogd.order_number
             AND fc.technology_number = ogd.technology_number
         where fc.process_id = #{processId}
           and fc.technology_number = #{technologyNumber}
+        order by IF(fc.sort != NULL || fc.sort != '', fc.sort, fc.order_number)
     </select>
 
     <update id="printSortMp">
@@ -655,12 +657,14 @@
                fc.technology_number as technologyNumber,
                od.building_number   as buildingNumber,
                od.product_name      as productName,
-               od.edging_type       as edgingType
+               od.edging_type       as edgingType,
+               p.remarks
 
         from sd.order as o
                  left join sd.order_detail as od on o.order_id = od.order_id
                  left join flow_card as fc on o.order_id = fc.order_id and
                                               od.order_number = fc.order_number
+                 left join sd.product as p on p.id=od.product_id
         where fc.process_id = #{processId}
           and fc.technology_number = #{technologyNumber}
         group by od.order_number, width, height

--
Gitblit v1.8.0