|  |  | 
 |  |  |                     
 | 
 |  |  |                     String symbol = orderCoinsEntity.getSymbol();
 | 
 |  |  |                     
 | 
 |  |  |                     OrderCoinsDealEntity detail = new OrderCoinsDealEntity();
 | 
 |  |  |                     detail.setMemberId(memberId);
 | 
 |  |  |                     detail.setOrderId(orderCoinsEntity.getId());
 | 
 |  |  |                     detail.setOrderNo(generateSimpleSerialno(memberId.toString()));
 | 
 |  |  |                     detail.setOrderType(orderCoinsEntity.getOrderType());
 | 
 |  |  |                     detail.setTradeType(orderCoinsEntity.getTradeType());
 | 
 |  |  |                     detail.setSymbol(symbol);
 | 
 |  |  |                     detail.setOrderStatus(OrderCoinsDealEntity.ORDERSTATUS_CANCEL);
 | 
 |  |  |                     detail.setSymbolCnt(orderCoinsEntity.getEntrustCnt());
 | 
 |  |  |                     detail.setEntrustPrice(orderCoinsEntity.getEntrustPrice().setScale(4, BigDecimal.ROUND_DOWN));
 | 
 |  |  |                     detail.setDealPrice(orderCoinsEntity.getDealPrice().setScale(4, BigDecimal.ROUND_DOWN));
 | 
 |  |  |                     detail.setDealAmount(orderCoinsEntity.getDealAmount().setScale(4, BigDecimal.ROUND_DOWN));
 | 
 |  |  |                     detail.setFeeAmount(orderCoinsEntity.getFeeAmount().setScale(4, BigDecimal.ROUND_DOWN));
 | 
 |  |  |                     orderCoinDealDao.insert(detail);
 | 
 |  |  | 					 | 
 |  |  |                     if(OrderCoinsEntity.ORDERTYPE_BUY.equals(orderCoinsEntity.getOrderType())) {
 | 
 |  |  |                         //如果是限价买入,撤单将USDT账户冻结金额返回
 | 
 |  |  |                         String walletCode = MemberWalletCoinEnum.WALLETCOINCODE.getValue();
 | 
 |  |  | 
 |  |  |                             return Result.ok(MessageSourceUtils.getString("order_service_0013"));
 | 
 |  |  |                         }
 | 
 |  |  |                     }
 | 
 |  |  |                     OrderCoinsDealEntity detail = new OrderCoinsDealEntity();
 | 
 |  |  |                     detail.setMemberId(memberId);
 | 
 |  |  |                     detail.setOrderId(orderCoinsEntity.getId());
 | 
 |  |  |                     detail.setOrderNo(generateSimpleSerialno(memberId.toString()));
 | 
 |  |  |                     detail.setOrderType(orderCoinsEntity.getOrderType());
 | 
 |  |  |                     detail.setTradeType(orderCoinsEntity.getTradeType());
 | 
 |  |  |                     detail.setSymbol(symbol);
 | 
 |  |  |                     detail.setOrderStatus(OrderCoinsDealEntity.ORDERSTATUS_CANCEL);
 | 
 |  |  |                     detail.setSymbolCnt(orderCoinsEntity.getEntrustCnt());
 | 
 |  |  |                     detail.setEntrustPrice(orderCoinsEntity.getEntrustPrice().setScale(4, BigDecimal.ROUND_DOWN));
 | 
 |  |  |                     detail.setDealPrice(orderCoinsEntity.getDealPrice().setScale(4, BigDecimal.ROUND_DOWN));
 | 
 |  |  |                     detail.setDealAmount(orderCoinsEntity.getDealAmount().setScale(4, BigDecimal.ROUND_DOWN));
 | 
 |  |  |                     detail.setFeeAmount(orderCoinsEntity.getFeeAmount().setScale(4, BigDecimal.ROUND_DOWN));
 | 
 |  |  |                     orderCoinDealDao.insert(detail);
 | 
 |  |  |                 }
 | 
 |  |  |         return Result.fail(MessageSourceUtils.getString("order_service_0043"));
 | 
 |  |  |     }
 |