From da497e4c08c46cbde5dfcd7ea0cf2e455ee6f592 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期一, 20 五月 2024 10:36:44 +0800
Subject: [PATCH] 添加发货报表
---
north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml
index aa4a38d..390aae8 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml
@@ -161,9 +161,18 @@
<select id="getCustomerList">
select
- *
+ a.*,
+ b.project,
+ b.salesman_id,
+ b.salesman
from
- sd.customer
+ sd.customer as a
+ left join (select o.project,o.salesman_id,o.salesman,o.customer_id
+ from sd.order as o
+ group by o.customer_id
+ order by o.id desc) as b
+ on a.id = b.customer_id
+
</select>
<select id="getSelectCustomer">
select
--
Gitblit v1.8.0