Helius
2020-08-12 88934af66d38f0797b7dfc486e919834b16b5ad0
src/main/resources/mapper/contract/ContractHoldOrderDao.xml
@@ -29,6 +29,9 @@
        <if test="symbol!=null and symbol!=''">
            and symbol=#{symbol}
        </if>
        <if test="type!=null and type!=0">
            and contract_type=#{type}
        </if>
        and is_can_closing=1
        order by create_time desc
    </select>
@@ -45,4 +48,17 @@
    <select id="selectAllHoldOrder" resultType="com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity">
        select * from contract_hold_order
    </select>
    <select id="selectMemberHoldOrderByPositionType" resultType="com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity">
        select * from contract_hold_order
        where position_type=#{positionType} and is_can_closing=1 and member_id=#{memberId}
        <if test="orderType != null">
            order_type=#{orderType}
        </if>
    </select>
    <select id="selectWholeHoldOrderByOrderType" resultType="com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity">
        select * from contract_hold_order
        where member_id=#{memberId} and order_type=#{OrderType}
    </select>
</mapper>