From 903d74d64f8d97f4b176d5454736c35b0268ada0 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Tue, 31 Dec 2024 16:10:45 +0800
Subject: [PATCH] feat(mall): 为资金流列表添加来源电话字段

---
 src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html |    2 ++
 src/main/resources/mapper/modules/MallMoneyFlowMapper.xml                     |    3 ++-
 src/main/java/cc/mrbird/febs/mall/vo/AdminMoneyFlowListVo.java                |    2 ++
 3 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/vo/AdminMoneyFlowListVo.java b/src/main/java/cc/mrbird/febs/mall/vo/AdminMoneyFlowListVo.java
index 8d055bd..a7e0141 100644
--- a/src/main/java/cc/mrbird/febs/mall/vo/AdminMoneyFlowListVo.java
+++ b/src/main/java/cc/mrbird/febs/mall/vo/AdminMoneyFlowListVo.java
@@ -30,6 +30,8 @@
 
     private String phone;
 
+    private String rtPhone;
+
     private Integer status;
 
     private String payMethod;
diff --git a/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml b/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
index fc5d0ec..2af071d 100644
--- a/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
+++ b/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
@@ -26,7 +26,8 @@
         select
         a.*,
         b.name,
-        b.phone
+        b.phone,
+        (select phone from mall_member where id = a.rt_member_id) rtPhone
         from mall_money_flow a
         inner join mall_member b on a.member_id=b.id
         <where>
diff --git a/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html b/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html
index 25281b1..91659f2 100644
--- a/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html
+++ b/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html
@@ -148,6 +148,8 @@
                                 return '-';
                             }
                         }, minWidth: 80,align:'center'},
+
+                    {field: 'rtPhone', title: '来源', minWidth: 150,align:'left'},
                     {field: 'createdTime', title: '创建时间', minWidth: 180,align:'center'}
                 ]]
             });

--
Gitblit v1.9.1