From 8fda5eddb56178a0c1e0e247b5c7f45ffc739c92 Mon Sep 17 00:00:00 2001
From: zainali5120 <512061637@qq.com>
Date: Wed, 28 Oct 2020 16:18:49 +0800
Subject: [PATCH] 修复K线生成问题

---
 src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java b/src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java
index 2c6a4be..af91983 100644
--- a/src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java
+++ b/src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java
@@ -37,7 +37,6 @@
             // 可以操作
             System.out.println("当前价格:" + price + "---正序---" + "队列价格:" + b.getValue().toPlainString() + " time:" + new Date());
             while (queue.peek() != null && queue.peek().compareTo(now) <= 0) {
-                log.info("------->");
                 // 可以发送消息操作
                 list.add(queue.remove());
             }
@@ -87,6 +86,7 @@
             for (AscBigDecimal asc : list) {
                 String key = asc.getValue().toPlainString();
                 assert orderMap != null;
+                log.info("----->->{}, --> {}", JSONObject.toJSONString(orderMap), key);
                 if (orderMap.containsKey(key)) {
                     orderModelList.addAll(orderMap.get(key));
                     orderMap.remove(key);
@@ -159,6 +159,7 @@
             for (DescBigDecimal desc : list) {
                 String key = desc.getValue().toPlainString();
                 assert orderMap != null;
+                log.info("----->->{}, --> {}", JSONObject.toJSONString(orderMap), key);
                 if (orderMap.containsKey(key)) {
                     orderModelList.addAll(orderMap.get(key));
                     orderMap.remove(key);

--
Gitblit v1.9.1