From 1a04230a60c65e2a7e8d1b392bc6408b2e77aa61 Mon Sep 17 00:00:00 2001
From: 你好啊 <1536384743@qq.com>
Date: 星期六, 22 二月 2025 13:53:17 +0800
Subject: [PATCH] 配置文件修改
---
north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 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 d1a3706..c0e41ee 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml
@@ -115,7 +115,9 @@
a.*,
b.project,
b.salesman_id,
- b.salesman
+ b.salesman,
+ b.contacts,
+ b.contact_number
from
sd.customer as a
left join (SELECT
@@ -128,6 +130,8 @@
o.project,
o.salesman_id,
o.salesman,
+ o.contacts,
+ o.contact_number,
o.customer_id
FROM
sd.ORDER AS o
@@ -137,6 +141,14 @@
on a.id = b.customer_id
</select>
+ <select id="getProjectList">
+ select * from(select project,salesman_id as salesmanId,salesman,contacts,contact_number as contactNumber,id from sd.`order`
+ where customer_id = #{id}
+ group by project
+ ) as a
+ order by id desc
+ </select>
+
<select id="getSelectCustomer">
select
*
--
Gitblit v1.8.0