From b85a2ab202e1da68ca1e532a783dc0f5685dad3b Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 22 八月 2024 23:43:40 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 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 9ff0452..f1250c5 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -889,7 +889,7 @@
                od.building_number                                    as buildingNumber,
                od.product_name                                       as productName,
                od.edging_type                                        as edgingType,
-               p.remarks,
+               od.remarks,
                c.customer_abbreviation                               as customerAbbreviation,
                p.product_abbreviation                                as productAbbreviation,
                fc.process_id                                         as processId,
@@ -1023,7 +1023,8 @@
         from sd.order_detail as od
                  left join flow_card as fc on od.order_id = fc.order_id and od.order_number = fc.order_number
         where fc.process_id = #{processId}
-          and fc.technology_number = #{technologyNumber}
+          and POSITION(fc.technology_number in #{technologyNumber})
+        GROUP BY other_columns
         order by IF(fc.sort != NULL or fc.sort != '', fc.sort, fc.order_number)
     </select>
 
@@ -1262,7 +1263,8 @@
                dd.breakage_reason,
                dd.responsible_process,
                dd.responsible_team,
-               concat('瀵瑰簲鎴戝徃鍗曞彿', o.batch)                 AS otherRemarks
+               concat('瀵瑰簲鎴戝徃鍗曞彿', o.batch)                 AS otherRemarks,
+               dd.responsible_personnel
         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
@@ -1343,7 +1345,8 @@
                dd.breakage_reason,
                dd.responsible_process,
                dd.responsible_team,
-               concat('瀵瑰簲鎴戝徃鍗曞彿', o.batch)                 AS otherRemarks
+               concat('瀵瑰簲鎴戝徃鍗曞彿', o.batch)                 AS otherRemarks,
+               dd.responsible_personnel
         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
@@ -1504,7 +1507,7 @@
                od.building_number                                    as buildingNumber,
                od.product_name                                       as productName,
                od.edging_type                                        as edgingType,
-               p.remarks,
+               od.remarks,
                c.customer_abbreviation                               as customerAbbreviation,
                p.product_abbreviation                                as productAbbreviation,
                CONCAT(fc.process_id, '/', fc.technology_number)      as processId,
@@ -1984,7 +1987,7 @@
                od.building_number                                    as buildingNumber,
                od.product_name                                       as productName,
                od.edging_type                                        as edgingType,
-               p.remarks,
+               od.remarks,
                c.customer_abbreviation                               as customerAbbreviation,
                p.product_abbreviation                                as productAbbreviation,
                fc.process_id                                         as processId,

--
Gitblit v1.8.0