From 8bcd0cc77b0c7aa2c00ffd926ee87f1f09a3a3b5 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期一, 11 八月 2025 10:07:48 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
---
north-glass-erp/src/main/resources/mapper/pp/WordOrder.xml | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/src/main/resources/mapper/pp/WordOrder.xml b/north-glass-erp/src/main/resources/mapper/pp/WordOrder.xml
index 03a7286..da82dde 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/WordOrder.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/WordOrder.xml
@@ -222,4 +222,22 @@
<select id="selectProcessCard">
select processing_card from sd.`order` where order_id = #{orderId}
</select>
+
+ <update id="updateWorkIdMp">
+ UPDATE sd.order_glass_detail AS ogd
+ JOIN (
+ SELECT order_id, order_number, MAX(production_id) AS production_id
+ FROM sd.order_glass_detail
+ WHERE production_id IS NOT NULL
+ AND FIND_IN_SET(order_id, #{orderId})
+ GROUP BY order_id, order_number
+ ) AS t
+ ON ogd.order_id = t.order_id AND ogd.order_number = t.order_number
+ SET ogd.production_id = t.production_id,
+ ogd.production_time = NOW(),
+ ogd.founder = #{userName}
+ WHERE ogd.production_id IS NULL
+ AND FIND_IN_SET(ogd.order_id, #{orderId})
+
+ </update>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0