| | |
| | | log.info("fee:{}", fee); |
| | | ContractOrderEntity contractOrderEntity = ContractHoldOrderEntityMapper.INSTANCE.holdOrderToOrder(holdOrderEntity); |
| | | contractOrderEntity.setId(null); |
| | | contractOrderEntity.setEntrustOpeningPrice(newPrice); |
| | | contractOrderEntity.setEntrustTime(new Date()); |
| | | contractOrderEntity.setClosingPrice(newPrice); |
| | | contractOrderEntity.setOrderType(orderType); |
| | | contractOrderEntity.setClosingType(closingType); |
| | |
| | | |
| | | memberWalletContractDao.increaseWalletContractBalanceById(changeAmount, total, null, walletContract.getId()); |
| | | |
| | | contractEntrustOrderDao.deleteById(entrustOrder.getId()); |
| | | ThreadPoolUtils.sendWholeForceClosingPrice(holdOrderEntity.getSymbol(), memberEntity); |
| | | // 计算佣金 |
| | | ThreadPoolUtils.calReturnMoney(memberEntity.getId(), fee, contractOrderEntity, AgentReturnEntity.ORDER_TYPE_CLOSE); |