xiaoyong931011
2023-08-12 7086b6ef40388aeb95235b73447cf03ffcdc583d
src/main/resources/mapper/dapp/DappChargeUsdtMapper.xml
@@ -8,4 +8,17 @@
        where member_id = #{memberId}
    </select>
    <select id="selectBySumAmountMemberId" resultType="java.math.BigDecimal">
        select ifnull(sum(amount),0)
        from dapp_charge_usdt
        where member_id = #{memberId}
    </select>
    <select id="selectBySumAmountMemberIdAndDate" resultType="java.math.BigDecimal">
        select ifnull(sum(amount),0)
        from dapp_charge_usdt
        where member_id = #{memberId}
        and date_format(create_time, '%Y-%m-%d') = #{dateTime}
    </select>
</mapper>