From 518797582b1d922a74fa6ccdf59da85d1aa8a47e Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期三, 26 六月 2024 11:39:42 +0800
Subject: [PATCH] 提交发货打印

---
 north-glass-erp/src/main/resources/mapper/sd/OrderGlassDetailMapper.xml |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 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 dc1fcbc..9b332f2 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/OrderGlassDetailMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/OrderGlassDetailMapper.xml
@@ -82,6 +82,7 @@
         <association property="orderDetail" javaType="com.example.erp.entity.sd.OrderDetail">
 
             <result column="building_number" property="buildingNumber"/>
+            <result column="product_id" property="productId"/>
             <result column="product_name" property="productName"/>
             <result column="width" property="width"/>
             <result column="height" property="height"/>
@@ -100,6 +101,7 @@
             a.order_id,
             a.order_number,
             b.building_number,
+            b.product_id,
             b.product_name,
             a.glass_address,
            a.technology_number,
@@ -143,4 +145,14 @@
         </foreach>
 
     </update>
+
+    <select id="getDifferentSizeNumber">
+       select if(count(id)>1,1,0) from (select
+          id
+        from order_glass_detail as a
+        where a.order_id = #{orderId}
+          and a.order_number = #{orderNumber}
+        group by child_width,child_height) as c
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0