xiaoyong931011
2021-03-29 48c7971f1449275ed73821cd558b87db985a1069
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>