From 9ef1f7389587bd35f26bb96935a788784f57cb07 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 01 Dec 2020 14:35:34 +0800
Subject: [PATCH] 20201201

---
 src/main/resources/mapper/modules/MemberCoinWithdrawMapper.xml |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/modules/MemberCoinWithdrawMapper.xml b/src/main/resources/mapper/modules/MemberCoinWithdrawMapper.xml
index 9bb9fcd..9002b09 100644
--- a/src/main/resources/mapper/modules/MemberCoinWithdrawMapper.xml
+++ b/src/main/resources/mapper/modules/MemberCoinWithdrawMapper.xml
@@ -2,7 +2,8 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.xcong.excoin.modules.member.mapper.MemberCoinWithdrawMapper">
 
-    <select id="findmemberWithdrawCoinListInPage" resultType="com.xcong.excoin.modules.member.vo.MemberCoinWithdrawVo"> SELECT
+    <select id="findmemberWithdrawCoinListInPage" resultType="com.xcong.excoin.modules.member.vo.MemberCoinWithdrawVo">
+       SELECT
         s.id,
         s.create_time,
         m.email,
@@ -14,7 +15,7 @@
         s.fee_amount,
         s.symbol,
         s.status,
-        s.is_inside,
+        case when is_inside = 'N' and EXISTS (select * from td_coin_wallet where address = s.address) then 'J' else s.is_inside end isInside,
         concat(auth.first_name,auth.second_name) as realName,
         (select phone from member where id = (select member_id from member_coin_address where address =s.address  and symbol =s.symbol and is_biyict=1)) insidePhone
         FROM
@@ -36,6 +37,9 @@
                 <if test="record.status!=null and record.status!=''">
                     and s.status= #{record.status}
                 </if>
+                <if test="record.address!=null and record.address!=''">
+                    and s.address = #{record.address}
+                </if>
                 <if test="record.insidePhone!=null and record.insidePhone!=''">
                     and #{record.insidePhone} in (select phone from member where id = (select member_id from member_coin_address where address =s.address  and symbol =s.symbol and is_biyict=1))
                 </if>

--
Gitblit v1.9.1