Helius
2020-09-08 4bb70ea5d9ccec9f4c36eb14f86653c29f0fdc30
modify
2 files modified
5 ■■■■■ changed files
src/main/java/com/xcong/excoin/quartz/job/NewestPriceUpdateJob.java 3 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/quartz/job/NewestPriceUpdateJob.java
@@ -54,7 +54,8 @@
                // 比较
                websocketPriceService.comparePriceAsc(symbol, price);
                websocketPriceService.comparePriceDesc(symbol, price);
                if ("etcusdt".equalsIgnoreCase(symbol)) {
                log.info("symbol -- > {}", symbol);
                if ("ETC/USDT".equalsIgnoreCase(symbol)) {
                    websocketPriceService.wholeBomb(symbol, price);
                }
                //System.out.println("比较完毕:"+symbol+"-"+price);
src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java
@@ -303,7 +303,7 @@
                    MemberWalletContractEntity wallet = memberWalletContractDao.findWalletContractByMemberIdAndSymbol(memberId, CoinTypeEnum.USDT.name());
                    BigDecimal sub = wallet.getTotalBalance().add(totalProfitOrLess);
                    log.info("sub : {}, memberId : {}", sub, memberId);
//                    log.info("sub : {}, memberId : {}", sub, memberId);
                    if (sub.compareTo(BigDecimal.ZERO) <= 0) {
                        List<OrderModel> list = new ArrayList<>();
                        OrderModel orderModel = new OrderModel(null, 0, price, symbol, memberId);