From 36be00e0f3cbe0d559c646fd2977e6e3a74aa6f9 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Mon, 30 Sep 2024 16:57:22 +0800
Subject: [PATCH] Merge branch 'bea' of http://120.27.238.55:7000/r/exchange into bea

---
 src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java |    4 +++-
 1 files changed, 3 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 6186ea7..af91983 100644
--- a/src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java
+++ b/src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java
@@ -58,7 +58,6 @@
         List<DescBigDecimal> list = new ArrayList<DescBigDecimal>();
         // 找到比当前价格还大的就是需要操作的 开多止损
         // 即最大的币当前价大 那么需要开多止损
-        log.info("---->{}, now:{}", b, now);
         if (b != null && b.compareTo(now) <= 0) {
             // 可以操作
             System.out.println("当前价格:" + price + "---倒序操作---" + "队列:" + b.getValue().toPlainString() + " time:" + new Date());
@@ -87,12 +86,14 @@
             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);
                 }
 
             }
+            log.info("------>{}", JSONObject.toJSONString(orderModelList));
             if (CollectionUtils.isEmpty(orderModelList)) {
                 return;
             }
@@ -158,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