From e55a701f5d4807a84eecc6aff5f69e35e9ee6af4 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期四, 11 七月 2024 17:02:49 +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