From a551d06d4a400894ccbcddca20b6b1b68a309ed2 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期五, 12 七月 2024 13:15:56 +0800
Subject: [PATCH] 修改流程卡删除方式,修改报表样式添加排产计划报表

---
 north-glass-erp/src/main/resources/mapper/sd/OrderDetailMapper.xml |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/sd/OrderDetailMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/OrderDetailMapper.xml
index 978b893..b47b6df 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/OrderDetailMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/OrderDetailMapper.xml
@@ -796,10 +796,14 @@
                b.delivery,
                b.create_time,
                b.update_time,
-               d.type_name as level_one, e.type_name as level_two
+               d.type_name as level_one,
+               e.type_name as level_two,
+               f.customer_abbreviation
         from sd.order_detail as a
                  left join sd.`order` as b
                            on b.order_id = a.order_id
+                 left join sd.customer as f
+                           on f.id = b.customer_id
                  left join sd.product as c
                            on c.id = a.product_id
                  left join sd.basic_glass_type as d
@@ -863,6 +867,15 @@
         order by id;
     </select>
 
+    <select id="getOrderProductByProductIds">
+        select *
+        from sd.order_detail od
+                 left join sd.product_detail pd on od.product_id = pd.prod_id
+        where od.order_id = #{orderId} and od.product_id=#{productId}
+          and pd.detail_type = 'glass'
+        group by od.product_id,pd.detail
+    </select>
+
 
 
 

--
Gitblit v1.8.0