Helius
2020-08-28 2d3de81973303a8f4e124473d69b2b9f77c38e99
src/main/resources/mapper/contract/ContractOrderDao.xml
@@ -77,4 +77,17 @@
            and 0 > reward_amount
        </if>
    </select>
    <select id="selectWholeOpenOrderByOrderNo" resultType="com.xcong.excoin.modules.contract.entity.ContractOrderEntity">
        select * from contract_order
        where order_no=#{orderNo}
        and order_type in (1,2) and order_status=1
    </select>
    <select id="selectWholeFeeAmountByOrderNo" resultType="java.math.BigDecimal">
        select sum(opening_fee_amount)
        from contract_order
        where order_no=#{orderNo}
        and order_type in (1,2) and order_status=1
    </select>
</mapper>