From 0c3f0f3e387fa66e520d8a065011232b559e6acc Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 09 九月 2026 13:43:43 +0800
Subject: [PATCH] fix(datascope): 修复数据权限范围判断逻辑

---
 src/main/resources/mapper/basic/CustomerMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/basic/CustomerMapper.xml b/src/main/resources/mapper/basic/CustomerMapper.xml
index ffaff4e..037cc23 100644
--- a/src/main/resources/mapper/basic/CustomerMapper.xml
+++ b/src/main/resources/mapper/basic/CustomerMapper.xml
@@ -142,7 +142,7 @@
             where rm.status=1
             group by sl.customer_id
         ) T4 on T4.customer_id=T1.customer_id
-        left join customer c on T1.customer_id = c.id
+        inner join customer c on T1.customer_id = c.id
         <where>
             <if test="customerName!=null and customerName!=''">
                 AND c.customer_name LIKE CONCAT('%', #{customerName}, '%')

--
Gitblit v1.9.3