From ce1fba3d0a107bd6ea79b3ad9ae47c63f57a0a13 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 27 Sep 2021 20:12:18 +0800
Subject: [PATCH] 20210927

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

diff --git a/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml b/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
index eeab48f..4250bd6 100644
--- a/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
+++ b/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
@@ -10,8 +10,8 @@
     <select id="selectApiMoneyFlowInPage" resultType="cc.mrbird.febs.mall.vo.MoneyFlowVo">
         select
             a.*,
-            case when a.rt_member_id is null then select n.phone from mall_member n where n.id=a.member_id
-                 when a.rt_member_id is not null then select m.phone from mall_member m where m.id=a.rt_member_id
+            case when a.rt_member_id is null then (select n.phone from mall_member n where n.id=a.member_id)
+                 when a.rt_member_id is not null then (select m.phone from mall_member m where m.id=a.rt_member_id)
             end phone,
             c.description memberLevel
         from mall_money_flow a
@@ -41,7 +41,6 @@
         inner join mall_member b on a.member_id=b.id
         left join mall_order_info c on a.order_no = c.order_no
         <where>
-            a.type != 6
             <if test="record != null" >
                 <if test="record.name!=null and record.name!=''">
                     and b.name like concat('%',  #{record.name},'%')

--
Gitblit v1.9.1