| | |
| | | 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> |
| | | 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> |
| | |
| | | update contract_hold_order set is_can_closing=#{isCanClosing} |
| | | where id=#{id} |
| | | </update> |
| | | |
| | | <select id="selectAllHoldOrder" resultType="com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity"> |
| | | select * from contract_hold_order |
| | | </select> |
| | | </mapper> |