From 6cdfe1d568d06bc63bb513ce0ef1df6aac3c7c3d Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Sat, 20 Feb 2021 15:32:12 +0800 Subject: [PATCH] fix --- src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java | 5 +++-- 1 files changed, 3 insertions(+), 2 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 12cb840..af91983 100644 --- a/src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java +++ b/src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java @@ -55,8 +55,6 @@ DescBigDecimal b = queue.peek(); // 当前价格 DescBigDecimal now = new DescBigDecimal(price); - log.info("--->{}", JSONObject.toJSONString(b)); - log.info("--->{}", JSONObject.toJSONString(now)); List<DescBigDecimal> list = new ArrayList<DescBigDecimal>(); // 找到比当前价格还大的就是需要操作的 开多止损 // 即最大的币当前价大 那么需要开多止损 @@ -88,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; } @@ -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