From b56ccffb0d6924ae45d25f395404495ad04a7447 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Fri, 14 Mar 2025 11:52:16 +0800
Subject: [PATCH] fix(MallMemberMapper): 修复查询时邀请人 ID 为空字符串的问题

---
 src/main/resources/mapper/modules/MallMemberMapper.xml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/modules/MallMemberMapper.xml b/src/main/resources/mapper/modules/MallMemberMapper.xml
index 554fad1..5244dc7 100644
--- a/src/main/resources/mapper/modules/MallMemberMapper.xml
+++ b/src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -27,6 +27,9 @@
                 <if test="record.accountStatus!=null">
                     and m.account_status = #{record.accountStatus}
                 </if>
+                <if test="record.inviteId!=null and record.inviteId!=''">
+                    and find_in_set(#{record.inviteId}, m.referrer_ids)
+                </if>
                 <if test="record.director!=null">
                     and m.director = #{record.director}
                 </if>

--
Gitblit v1.9.1