From 183f7ace7ed8de8fe36e36b67c49b0b2ad24ac95 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Fri, 07 Aug 2020 09:56:23 +0800 Subject: [PATCH] modify --- src/main/resources/mapper/contract/ContractHoldOrderDao.xml | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/contract/ContractHoldOrderDao.xml b/src/main/resources/mapper/contract/ContractHoldOrderDao.xml index 024fe90..32fbaf4 100644 --- a/src/main/resources/mapper/contract/ContractHoldOrderDao.xml +++ b/src/main/resources/mapper/contract/ContractHoldOrderDao.xml @@ -24,6 +24,18 @@ select * from contract_hold_order where member_id=#{memberId} and is_can_closing=1 order by create_time desc </select> + <select id="selectHoldOrderListByMemberIdAndSymbol" resultType="com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity"> + select * from contract_hold_order where member_id=#{memberId} + <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> + <select id="selectHoldOrderByMemberIdAndId" resultType="com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity"> select * from contract_hold_order where member_id=#{memberId} and id=#{id} </select> -- Gitblit v1.9.1