Helius
2020-11-24 3f91c4b35d9cb35deac3b6e02919d0809d8b6466
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>