From b99df87ebbcc65028e3986ad9bb7ac046658abde Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 22 四月 2026 14:43:04 +0800
Subject: [PATCH] feat(mapper): 供应商往来和客户往来计算统计问题

---
 src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml b/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml
index 08e16e4..12c2fc6 100644
--- a/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml
+++ b/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml
@@ -36,7 +36,10 @@
         <where>
             cpp.delete_flag = 0
             <if test="c.customerName != null and c.customerName != ''">
-                and c.customer_name like concat('%', #{c.customerName}, '%')
+                and (c.customer_name like concat('%', #{c.customerName}, '%') or cp.customer_name like concat('%', #{c.customerName}, '%'))
+            </if>
+            <if test="c.customerType != null">
+                and c.customer_type = #{c.customerType}
             </if>
             <if test="c.boundId != null">
                 and cpp.bound_id = #{c.boundId}

--
Gitblit v1.9.3