From 664184af3e070dee665ee736caffa0297804975f Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Tue, 18 Mar 2025 11:46:02 +0800
Subject: [PATCH] perf(mall): 移除会员利润计算中的异步执行

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

diff --git a/src/main/resources/mapper/modules/MallMemberMapper.xml b/src/main/resources/mapper/modules/MallMemberMapper.xml
index 99ad530..1d64ead 100644
--- a/src/main/resources/mapper/modules/MallMemberMapper.xml
+++ b/src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -27,8 +27,8 @@
                 <if test="record.accountStatus!=null">
                     and m.account_status = #{record.accountStatus}
                 </if>
-                <if test="record.inviteId!=null">
-                    and find_in_set(#{record.inviteId}, m.referrer_ids)
+                <if test="record.inviteId!=null and record.inviteId!=''">
+                    and m.referrer_id = #{record.inviteId}
                 </if>
                 <if test="record.director!=null">
                     and m.director = #{record.director}

--
Gitblit v1.9.1