| | |
| | | |
| | | <select id="selectHoldOrderListForWholeByMemberIdAndSymbol" resultType="com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity"> |
| | | select * from contract_hold_order where member_id=#{memberId} |
| | | and symbol=#{symbol} |
| | | <if test="symbol != null and symbol != ''"> |
| | | and symbol=#{symbol} |
| | | </if> |
| | | and position_type=2 |
| | | order by create_time desc |
| | | </select> |
| | |
| | | where position_type=2 |
| | | group by member_id, symbol |
| | | </select> |
| | | |
| | | <select id="selectWholeHoldOrderSymbolsByMemberId" resultType="java.lang.String"> |
| | | select distinct symbol |
| | | from contract_hold_order |
| | | where position_type=2 and member_id=#{memberId} |
| | | </select> |
| | | </mapper> |