新版仿ok交易所-后端
zyy
2025-09-10 bd8391d8f7b74077a2404014a052152780b116e4
trading-order-service/src/main/java/com/yami/trading/service/exchange/impl/ExchangeApplyOrderServiceImpl.java
@@ -148,6 +148,11 @@
        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) {
@@ -183,6 +188,7 @@
        List<ExchangeApplyOrder> list = list(lambdaQueryWrapper);
        return getDataList(list);
    }
    private static List<ExchangeApplyOrder> getData() {
@@ -637,6 +643,8 @@
            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("余额不足");
            }