|  |  | 
 |  |  | import com.xcong.excoin.modules.contract.dao.ContractHoldOrderDao; | 
 |  |  | import com.xcong.excoin.modules.contract.dao.ContractOrderDao; | 
 |  |  | import com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity; | 
 |  |  | import com.xcong.excoin.modules.contract.service.ContractHoldOrderService; | 
 |  |  | import com.xcong.excoin.modules.member.dao.MemberDao; | 
 |  |  | import com.xcong.excoin.modules.member.dao.MemberLevelRateDao; | 
 |  |  | import com.xcong.excoin.modules.member.dao.MemberWalletContractDao; | 
 |  |  | 
 |  |  | import com.xcong.excoin.modules.member.entity.MemberWalletContractEntity; | 
 |  |  | import com.xcong.excoin.modules.platform.entity.PlatformTradeSettingEntity; | 
 |  |  | import com.xcong.excoin.modules.symbols.service.SymbolsService; | 
 |  |  | import com.xcong.excoin.quartz.job.UsdtCnyExchangePriceUpdateJob; | 
 |  |  | 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; | 
 |  |  | import org.junit.jupiter.api.Test; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.boot.test.context.SpringBootTest; | 
 |  |  |  | 
 |  |  | import javax.annotation.Resource; | 
 |  |  | 
 |  |  |         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); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Resource | 
 |  |  |     private ContractHoldOrderService contractHoldOrderService; | 
 |  |  |  | 
 |  |  |     @Test | 
 |  |  |     public void holdAmountTest() { | 
 |  |  |         try { | 
 |  |  |             contractHoldOrderService.calHoldFeeAmountForBondAmount(); | 
 |  |  |         } catch (Exception e) { | 
 |  |  |             log.info("-->", e); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private UsdtCnyExchangePriceUpdateJob usdtCnyExchangePriceUpdateJob; | 
 |  |  |  | 
 |  |  |     @Test | 
 |  |  |     public void usdtCnyTest() { | 
 |  |  |         usdtCnyExchangePriceUpdateJob.updateUsdtCnyExchange(); | 
 |  |  |     } | 
 |  |  | } |