From 8b116fd4f2633194b050a0eca13964ce4f2e18f7 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期五, 01 八月 2025 16:41:22 +0800
Subject: [PATCH] 订单转生产订单根据工艺流程区分不同产品,报工修改逻辑调整
---
north-glass-erp/src/main/resources/mapper/sd/ProductMapper.xml | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/src/main/resources/mapper/sd/ProductMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/ProductMapper.xml
index 2edce48..4976f9c 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/ProductMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/ProductMapper.xml
@@ -133,4 +133,14 @@
<update id="updateProductStateById">
update product set state = #{state} where id = #{id}
</update>
+
+ <select id="getGlassThickness">
+ select sum(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(separation, '$.thickness')),'mm',''))
+ from product_detail as a
+ where a.prod_id = #{productId}
+ and a.id <= (select b.id
+ from product_detail as b
+ where b.prod_id = #{productId} and b.glass_sort = #{technologyNumber})
+
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0