From 3f91c4b35d9cb35deac3b6e02919d0809d8b6466 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 24 Nov 2020 17:48:06 +0800
Subject: [PATCH] modify

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

diff --git a/src/main/resources/mapper/member/SrcAddressDao.xml b/src/main/resources/mapper/member/SrcAddressDao.xml
index a649376..3f68088 100644
--- a/src/main/resources/mapper/member/SrcAddressDao.xml
+++ b/src/main/resources/mapper/member/SrcAddressDao.xml
@@ -1,13 +1,16 @@
 <?xml version="1.0" encoding="UTF-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.coin.dao.MemberSelectSymbolsDao">
- 	
-	<select id="selectSymbolByMemIdAndSymbol" resultType="com.xcong.excoin.modules.member.entity.MemberSelectSymbolsEntity">
-		select id id,symbol symbol,member_id memberId from member_select_symbols where member_id = #{memberId} and symbol = #{symbol}
-	</select>
-	
-	<select id="selectSymbolByMemId" resultType="com.xcong.excoin.modules.member.entity.MemberSelectSymbolsEntity">
-		select id id,symbol symbol,member_id memberId from member_select_symbols where member_id = #{memberId} GROUP BY symbol
-	</select>
-	
+<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 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