From a7748c3f762c5a68c368effdfef9c6f8e867059b Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期一, 10 二月 2025 09:27:03 +0800
Subject: [PATCH] 更改查询历史项目分组条件

---
 north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml |    8 ++++++++
 1 files changed, 8 insertions(+), 0 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..1761017 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml
@@ -137,6 +137,14 @@
         on a.id = b.customer_id
 
     </select>
+    <select id="getProjectList">
+        select * from(select project,salesman_id,salesman,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