| | |
| | | // 可以操作 |
| | | 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()); |
| | | } |
| | | } |
| | | |
| | | log.info("---->{}", JSONObject.toJSONString(list)); |
| | | if (CollectionUtils.isNotEmpty(list)) { |
| | | dealAscPriceOrderAndSenMq(list, symbol); |
| | | } |
| | |
| | | } |
| | | |
| | | } |
| | | log.info("------>{}", JSONObject.toJSONString(orderModelList)); |
| | | if (CollectionUtils.isEmpty(orderModelList)) { |
| | | return; |
| | | } |