From 5c3dd2ee1a6f9525f6310872e8f0f130bf2df172 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 15 五月 2025 11:08:48 +0800
Subject: [PATCH] 将合片工序分为stepA和stepB,修改之前的合片工序相关判断
---
north-glass-erp/src/main/resources/mapper/sd/OrderGlassDetailMapper.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/north-glass-erp/src/main/resources/mapper/sd/OrderGlassDetailMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/OrderGlassDetailMapper.xml
index 1e9753c..89b7247 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/OrderGlassDetailMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/OrderGlassDetailMapper.xml
@@ -167,14 +167,14 @@
</update>
<select id="getDifferentSizeNumber">
- select if(count(id)>1,1,0) from (select
+ select if(count(id)>0,1,0) from (select
a.id,a.child_width,b.width
from order_glass_detail as a
left join order_detail as b
on a.order_id = b.order_id and a.order_number = b.order_number
where a.order_id = #{orderId}
and a.order_number = #{orderNumber}
- and a.child_width != b.width
+ and(a.child_width != b.width or a.child_height != b.height)
) as c
</select>
--
Gitblit v1.8.0