| | |
| | | log.info("bondAmount:{}", bondAmount); |
| | | // 平仓手续费 TODO 可能需要修复手续费 |
| | | BigDecimal fee = BigDecimal.ZERO; |
| | | log.info("sysmbolCnt : {}", holdOrderEntity.getSymbolCnt()); |
| | | if (holdOrderEntity.getSymbolCnt() != 0) { |
| | | |
| | | if (holdOrderEntity.getSymbolCntSale() != 0) { |
| | | fee = holdOrderEntity.getOpeningFeeAmount().divide(BigDecimal.valueOf(holdOrderEntity.getSymbolCnt()), 8, BigDecimal.ROUND_DOWN).multiply(BigDecimal.valueOf(closeCnt)); |
| | | } else { |
| | | fee = holdOrderEntity.getOpeningFeeAmount(); |
| | |
| | | if (CollUtil.isNotEmpty(list)) { |
| | | List<Long> ids = new ArrayList<>(); |
| | | list.forEach(model -> ids.add(model.getOrderId())); |
| | | log.info("---平仓-->{}",ids); |
| | | List<ContractEntrustOrderEntity> contractEntrustOrderEntities = contractEntrustOrderDao.selectEntrustOrderListByIds(ids); |
| | | |
| | | if (CollUtil.isNotEmpty(contractEntrustOrderEntities)) { |