xiaoyong931011
2021-03-19 3f22b35a5c8327b9def2ae5ff0514fdc4c53771f
src/main/resources/mapper/contract/ContractOrderDao.xml
@@ -97,4 +97,14 @@
        reward_ratio=#{rewardRatio}
        where id=#{id}
    </update>
    <select id="getBurstUsdtByMemberId" resultType="java.math.BigDecimal">
        SELECT
            IFNULL(SUM(reward_amount), 0)
        FROM
            contract_order
        WHERE
            closing_type IN (4, 5)
            and member_id=#{memberId}
    </select>
</mapper>