| | |
| | | import com.xcong.excoin.modules.symbols.service.SymbolsService; |
| | | import com.xcong.excoin.rabbit.producer.OrderProducer; |
| | | import com.xcong.excoin.utils.CacheSettingUtils; |
| | | import com.xcong.excoin.utils.CalculateUtil; |
| | | import com.xcong.excoin.utils.CoinTypeConvert; |
| | | import com.xcong.excoin.utils.RedisUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | log.info("----->{}", totalProfitOrLess); |
| | | |
| | | } |
| | | |
| | | @Test |
| | | public void forceTest() { |
| | | ContractHoldOrderEntity hold = contractHoldOrderDao.selectById(28284L); |
| | | MemberEntity memberEntity = memberDao.selectById(6L); |
| | | BigDecimal forceSetPrice = CalculateUtil.getForceSetPrice(hold.getBondAmount(), hold.getOpeningPrice(), hold.getSymbolCnt(), hold.getSymbolSku(), hold.getOpeningType(), memberEntity); |
| | | System.out.println(forceSetPrice); |
| | | } |
| | | } |