| | |
| | | if (item == null) { |
| | | throw new YamiShopBindException("参数错误"); |
| | | } |
| | | if (itemService.isSuspended(order.getSymbol())) { |
| | | throw new YamiShopBindException("停牌禁止交易"); |
| | | } |
| | | |
| | | |
| | | List<Realtime> realtimes = dataService.realtime(order.getSymbol()); |
| | | double close = 1; |
| | | if (realtimes != null && realtimes.size() > 0) { |
| | |
| | | List<ExchangeApplyOrder> list = list(lambdaQueryWrapper); |
| | | return getDataList(list); |
| | | } |
| | | |
| | | |
| | | private static List<ExchangeApplyOrder> getData() { |
| | | |
| | |
| | | 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("余额不足"); |
| | | } |