xiaoyong931011
2020-08-28 28f0aa6728abd49e6789179ef43c213d42a750b0
src/main/resources/mapper/contract/ContractHoldOrderDao.xml
@@ -56,6 +56,13 @@
    <select id="selectWholeHoldOrderByOrderType" resultType="com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity">
        select * from contract_hold_order
        where member_id=#{memberId} and order_type=#{OrderType}
        where member_id=#{memberId} and opening_type=#{orderType} and symbol=#{symbol}
    </select>
    <select id="selectHoldOrderListForWholeByMemberIdAndSymbol" resultType="com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity">
        select * from contract_hold_order where member_id=#{memberId}
        and symbol=#{symbol}
        and position_type=2
        order by create_time desc
    </select>
</mapper>