From 18b9614fa2a291223b7d4b86ef75c12df4260ca2 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 25 Jul 2023 16:17:41 +0800
Subject: [PATCH] 订单支付后生成对应的课程单

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

diff --git a/src/main/resources/mapper/modules/MallMemberMapper.xml b/src/main/resources/mapper/modules/MallMemberMapper.xml
index 62396d3..4537f78 100644
--- a/src/main/resources/mapper/modules/MallMemberMapper.xml
+++ b/src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -93,7 +93,7 @@
              where (b.invite_id=a.invite_id or b.referrer_id=a.invite_id)) amount,
             (select count(1) from mall_member e
                       inner join mall_order_info b on e.id=b.member_id and b.status in (2, 3, 4)
-             where find_in_set(a.invite_id, e.referrer_ids)) orderCnt,
+             where find_in_set(a.invite_id, e.referrer_ids) or e.invite_id = a.invite_id) orderCnt,
             (select count(1) from mall_member x where find_in_set(a.invite_id, x.referrer_ids)) cnt
         from mall_member a
         inner join mall_member_wallet p on a.id = p.member_id
@@ -388,7 +388,8 @@
         <where>
             1=1
             <if test="type == 1">
-                and level= 'V_DIRECTOR'
+--                 and level= 'V_DIRECTOR'
+                and director= 1
             </if>
             <if test="type == 2">
                 and store_master = 1

--
Gitblit v1.9.1