From d26736697059b67b84f3a5acc14099cb33afa1e0 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Sun, 26 Sep 2021 19:00:44 +0800
Subject: [PATCH] 20210926

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

diff --git a/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml b/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
index 5aa1258..b9be8d9 100644
--- a/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
+++ b/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
@@ -31,9 +31,11 @@
         select
         a.*,
         b.name,
+        c.pay_method payMethod,
         b.phone
         from mall_money_flow a
         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" >
@@ -43,6 +45,9 @@
                 <if test="record.phone!=null and record.phone!=''">
                     and b.phone like concat('%',  #{record.phone},'%')
                 </if>
+                <if test="record.type!=null and record.type!=''">
+                    and a.type like concat('%',  #{record.type},'%')
+                </if>
             </if>
         </where>
         order by a.created_time desc

--
Gitblit v1.9.1