| | |
| | | package com.xcong.excoin; |
| | | |
| | | import com.xcong.excoin.modules.contract.dao.ContractHoldOrderDao; |
| | | import com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity; |
| | | import com.xcong.excoin.modules.member.dao.MemberDao; |
| | | import com.xcong.excoin.modules.member.entity.MemberEntity; |
| | | import com.xcong.excoin.utils.CalculateUtil; |
| | | import com.xcong.excoin.utils.ThreadPoolUtils; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @Resource |
| | | private MemberDao memberDao; |
| | | @Autowired |
| | | private ContractHoldOrderDao contractHoldOrderDao; |
| | | |
| | | @Test |
| | | public void forceClosePriceTest() { |
| | |
| | | } |
| | | } |
| | | |
| | | @Test |
| | | public void closingOrderTest() { |
| | | ContractHoldOrderEntity holdOrderEntity = contractHoldOrderDao.selectById(822L); |
| | | System.out.println(holdOrderEntity.getPositionType()); |
| | | } |
| | | |
| | | } |