wuyouming666
2025-04-07 ba6b8c6be389e1c76f15f85e43f2d55ff5d34caf
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>