From f084b91abd2b7374f79db79aa01aa198c6b103f6 Mon Sep 17 00:00:00 2001 From: wzy <wzy19931122ai@163.com> Date: Mon, 04 Jan 2021 23:22:09 +0800 Subject: [PATCH] add msd --- 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