From deef4c637b01c37c8a5bbe749ed93e6797fcfe19 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期五, 19 七月 2024 14:54:23 +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