From ce06fcc3113dc45647910deef0e4adeaa97bfa3f Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期三, 15 十月 2025 13:32:40 +0800
Subject: [PATCH] 语言修改
---
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