| | |
| | | return getDataList(list); |
| | | } |
| | | |
| | | |
| | | private static List<ExchangeApplyOrder> getData() { |
| | | |
| | | List<ExchangeApplyOrder> exchangeApplyOrders = new ArrayList<>(); |
| | |
| | | save(order); |
| | | } |
| | | if (!order.isTriggerOrder()) { |
| | | System.out.println("-----userIdWallet---------:"+userIdWallet.getMoney().doubleValue()); |
| | | System.out.println("-----order---------:"+order.getVolume().doubleValue()); |
| | | if (userIdWallet.getMoney().doubleValue() < order.getVolume().doubleValue()) { |
| | | throw new YamiShopBindException("余额不足"); |
| | | } |
| | | this.walletService.update(userIdWallet.getUserId().toString(), Arith.sub(0, order.getVolume())); |
| | | // capitaltWalletService.update(userIdWallet, Arith.sub(0, order.getVolume())); |
| | | // this.walletService.update(userIdWallet.getUserId().toString(), Arith.sub(0, order.getVolume())); |
| | | capitaltWalletService.update(userIdWallet, Arith.sub(0, order.getVolume())); |
| | | /* |
| | | * 保存资金日志 |
| | | */ |