xiaoyong931011
2023-08-22 09d498d50765b58b048bdf0a81e4ff1765439bef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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.dapp.mapper.DappUsdtPerkEntityMapper">
 
    <select id="selectByMemberId" resultType="cc.mrbird.febs.dapp.entity.DappUsdtPerkEntity">
        select *
        from dapp_usdt_perk
        where member_id = #{memberId}
    </select>
 
    <select id="selectAchieveAmountByMemberId" resultType="java.math.BigDecimal">
        select IFNULL(a.achieve_amount, 0)
        from dapp_usdt_perk a
        where a.member_id = #{memberId}
    </select>
 
 
 
</mapper>