Helius
2021-03-30 f5f590dbc5ff6ca1e270ffcfb45a80d43b315e69
src/main/resources/mapper/contract/ContractOrderDao.xml
@@ -90,4 +90,21 @@
        where order_no=#{orderNo}
        and order_type in (1,2) and order_status=1
    </select>
    <update id="updateOrderProfitOrLessById">
        update contract_order
        set reward_amount=#{rewardAmount},
        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>