xiaoyong931011
2023-09-14 08181609f58ed88764960fcf2cfd37dd246fc297
src/main/resources/mapper/dapp/DappWalletCoinDao.xml
@@ -153,4 +153,19 @@
    <select id="selectAmountThanZero" resultType="cc.mrbird.febs.dapp.entity.DappWalletCoinEntity">
        select * from dapp_wallet_coin where available_amount > 0
    </select>
    <select id="selectTotal" resultType="java.math.BigDecimal">
        select IFNULL(sum(IFNULL(total_amount,0)),0)
        from dapp_wallet_coin
    </select>
    <select id="selectWithdrawAmountByType" resultType="java.math.BigDecimal">
        select IFNULL(sum(IFNULL(amount,0)),0)
        from member_coin_withdraw
        where 1=1
          and status != 3
        <if test='type == "D"'>
            and date_format(CREATE_TIME, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d');
        </if>
    </select>
</mapper>