wzy
2021-01-04 f084b91abd2b7374f79db79aa01aa198c6b103f6
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>