From 43fa0ec4dc02c2bb1a2ac5e9eea81cae4d2cb11d Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 17 Dec 2021 16:08:18 +0800
Subject: [PATCH] Merge branch 'master' of http://120.27.238.55:7000/r/xc-video

---
 src/main/resources/mapper/blockchain/MemberCoinAddressDao.xml |  108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 108 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/blockchain/MemberCoinAddressDao.xml b/src/main/resources/mapper/blockchain/MemberCoinAddressDao.xml
new file mode 100644
index 0000000..2e69623
--- /dev/null
+++ b/src/main/resources/mapper/blockchain/MemberCoinAddressDao.xml
@@ -0,0 +1,108 @@
+<?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="cc.mrbird.febs.blockchain.mapper.MemberCoinAddressDao">
+
+	<select id="selectAddressByMemberIdAndSymbol" resultType="cc.mrbird.febs.blockchain.entity.MemberCoinAddressEntity">
+        select * from member_coin_address where member_id=#{memberId} and symbol = #{symbol}
+    </select>
+    
+	<select id="selectBlockAddressWithTag" resultType="cc.mrbird.febs.blockchain.entity.MemberCoinAddressEntity">
+		select *
+		  from member_coin_address 
+		 <where>
+		 is_biyict = 1
+	 		<if test="memberId != null  and  memberId  != ''">
+	 			 and member_id = #{memberId}
+	 		</if>
+			 <if test="symbol != null  and  symbol  != ''">
+				 and symbol = #{symbol}
+			 </if>
+			 <if test="tag != null  and  tag  != ''">
+				 and tag = #{tag}
+			 </if>
+		 </where>
+	</select>
+	
+	<select id="selectBlockAddress" resultType="cc.mrbird.febs.blockchain.entity.MemberCoinAddressEntity">
+		select * 
+		  from member_coin_address 
+		 <where>
+		 is_biyict = 1
+	 		<if test="memberId != null  and  memberId  != ''">
+	 			 and member_id = #{memberId}
+	 		</if>
+			 <if test="symbol != null  and  symbol  != ''">
+				 and symbol = #{symbol}
+			 </if>
+		 </where>
+	</select>
+
+	<select id="selectCoinAddressByAddressAndSymbol" resultType="cc.mrbird.febs.blockchain.entity.MemberCoinAddressEntity">
+		select *
+		  from member_coin_address
+		 <where>
+		 is_biyict = 1
+			 <if test="symbol != null  and  symbol  != ''">
+				 and symbol = #{symbol}
+			 </if>
+			 <if test="address != null  and  address  != ''">
+				 and address = #{address}
+			 </if>
+		 </where>
+	</select>
+	
+	<select id="selectCoinAddressListByMap" resultType="cc.mrbird.febs.blockchain.entity.MemberCoinAddressEntity">
+		select *  from member_coin_address 
+		 <where>
+		 is_biyict = 2
+		  and symbolscoin_id IS NOT NULL
+	 		<if test="memberId != null  and  memberId  != ''">
+	 			 and member_id = #{memberId}
+	 		</if>
+			 <if test="symbol != null  and  symbol  != ''">
+				 and symbol = #{symbol}
+			 </if>
+		 </where>
+	</select>
+
+
+	<select id="selectAllBlockAddressBySymbolAndTag" resultType="cc.mrbird.febs.blockchain.entity.MemberCoinAddressEntity">
+		select * from member_coin_address
+		where is_biyict = 1
+		<if test="symbol != null  and  symbol  != ''">
+			and symbol = #{symbol}
+		</if>
+		<if test="tag != null  and  tag  != ''">
+			and tag = #{tag}
+		</if>
+	</select>
+
+	<select id="selectAllBlockAddressBySymbol" resultType="cc.mrbird.febs.blockchain.entity.MemberCoinAddressEntity">
+		select * from member_coin_address
+		where symbol=#{symbol}
+	</select>
+
+	<select id="selectAllSymbolAddress" resultType="string" parameterType="map">
+		select address from member_coin_address where symbol =#{symbol}
+		<if test="tag!=null and tag !=''">
+			and tag = #{tag}
+		</if>
+	</select>
+
+	<select id="selectCoinAddressByAddressAndSymbolTag" resultType="cc.mrbird.febs.blockchain.entity.MemberCoinAddressEntity">
+		select *
+		from member_coin_address
+		<where>
+			is_biyict = 1
+			<if test="symbol != null  and  symbol  != ''">
+				and symbol = #{symbol}
+			</if>
+			<if test="address != null  and  address  != ''">
+				and address = #{address}
+			</if>
+			<if test="tag != null  and  tag  != ''">
+				and tag = #{tag}
+			</if>
+		</where>
+	</select>
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.1