From 832adfae7b7d3869c833b3c700232155e6600526 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 06 Sep 2023 17:20:42 +0800
Subject: [PATCH] 后台修改

---
 src/main/resources/mapper/dapp/DappFundFlowDao.xml                |    2 +-
 src/main/resources/templates/febs/views/dapp/member-withdraw.html |    3 ++-
 src/main/java/cc/mrbird/febs/dapp/entity/DappFundFlowEntity.java  |    3 +++
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/dapp/entity/DappFundFlowEntity.java b/src/main/java/cc/mrbird/febs/dapp/entity/DappFundFlowEntity.java
index 6b8bf02..46003f0 100644
--- a/src/main/java/cc/mrbird/febs/dapp/entity/DappFundFlowEntity.java
+++ b/src/main/java/cc/mrbird/febs/dapp/entity/DappFundFlowEntity.java
@@ -119,6 +119,9 @@
     @TableField(exist = false)
     private String address;
 
+    @TableField(exist = false)
+    private BigDecimal realAmount;
+
     private BigDecimal fee;
     /**
      * 用来存放用户购买节点的节点编码
diff --git a/src/main/resources/mapper/dapp/DappFundFlowDao.xml b/src/main/resources/mapper/dapp/DappFundFlowDao.xml
index 179393f..af040a9 100644
--- a/src/main/resources/mapper/dapp/DappFundFlowDao.xml
+++ b/src/main/resources/mapper/dapp/DappFundFlowDao.xml
@@ -3,7 +3,7 @@
 <mapper namespace="cc.mrbird.febs.dapp.mapper.DappFundFlowDao">
 
     <select id="selectInPage" resultType="cc.mrbird.febs.dapp.entity.DappFundFlowEntity">
-        select a.*, b.address address from dapp_fund_flow a
+        select a.*,(a.amount+a.fee) realAmount, b.address address from dapp_fund_flow a
         inner join dapp_member b on a.member_id=b.id
         <where>
             <if test="record.currentUser != null">
diff --git a/src/main/resources/templates/febs/views/dapp/member-withdraw.html b/src/main/resources/templates/febs/views/dapp/member-withdraw.html
index d5aec91..5dc6a96 100644
--- a/src/main/resources/templates/febs/views/dapp/member-withdraw.html
+++ b/src/main/resources/templates/febs/views/dapp/member-withdraw.html
@@ -147,7 +147,8 @@
                 cols: [[
                     {field: 'address', title: '地址', minWidth: 130, totalRowText: '合计:'},
                     {field: 'createTime', title: '创建时间', minWidth: 180},
-                    {field: 'amount', title: '提现金额(USDT)', minWidth: 130,totalRow: '{{= parseInt(d.amount) }}'},
+                    {field: 'realAmount', title: '扣手续费后的提现金额', minWidth: 200,totalRow: '{{= parseInt(d.realAmount) }}'},
+                    // {field: 'amount', title: '提现金额(USDT)', minWidth: 130,totalRow: '{{= parseInt(d.amount) }}'},
                     {title: '提现状态', templet: '#withdraw-status'},
                     {field: 'fee', title: '手续费', minWidth: 130},
                     {title: '操作', toolbar: '#withdraw-option', minWidth: 200}

--
Gitblit v1.9.1