Helius
2021-09-07 1e4cab335b1cb68ad3438e522ea410c2d2e753ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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.platform.dao.PlatformSymbolsCoinDao">
 
    <select id="selectCoinAddressCount" resultType="com.xcong.excoin.modules.member.parameter.vo.MemberCoinAddressCountVo">
        SELECT
            a.id,
            a. NAME,
            count(b.id) count
        FROM
            platform_symbols_coin a
        LEFT JOIN member_coin_address b ON a.id = b.symbolscoin_id
        AND member_id = #{memberId}
        GROUP BY
            a.id,
            a. NAME
    </select>
 
    <select id="selectOneBySymbol" resultType="com.xcong.excoin.modules.platform.entity.PlatformSymbolsCoinEntity">
        SELECT
            *
        FROM
            platform_symbols_coin a
            where a.name = #{symbol}
    </select>
    
</mapper>