From 18ec469960104139455f8a3863e3c9e8fb1f32d2 Mon Sep 17 00:00:00 2001
From: wzy <wzy19931122ai@163.com>
Date: Sun, 29 Nov 2020 14:48:11 +0800
Subject: [PATCH] Merge branch 'pilot' of https://gitee.com/chonggaoxiao/new_excoin into pilot

---
 src/main/resources/mapper/member/SrcAddressDao.xml |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/member/SrcAddressDao.xml b/src/main/resources/mapper/member/SrcAddressDao.xml
index 1737811..3f68088 100644
--- a/src/main/resources/mapper/member/SrcAddressDao.xml
+++ b/src/main/resources/mapper/member/SrcAddressDao.xml
@@ -3,10 +3,14 @@
 <mapper namespace="com.xcong.excoin.modules.coin.dao.TrcAddressDao">
 
     <select id="selectSrcAddressByMemberId" resultType="com.xcong.excoin.modules.coin.entity.TrcAddressEntity">
-        select * from trc_address where member_id=#{memberId} and is_use=1
+        select * from trc_address where member_id=#{memberId} and is_use=1 and system_flag = 1
     </select>
 
     <select id="selectOneSrcAddressUnUse" resultType="com.xcong.excoin.modules.coin.entity.TrcAddressEntity">
         select * from trc_address where is_use=2 limit 1
     </select>
+
+    <select id="selectTrcAddressByAddress" resultType="com.xcong.excoin.modules.coin.entity.TrcAddressEntity">
+        select * from trc_address where address = #{address} and is_use = 1
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1