From 730d1944e3a13c517c77df2b0712df05645a38dd Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期一, 06 一月 2025 16:00:58 +0800
Subject: [PATCH] chartParamList api

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/mq/consumer/ImageConsumer.java |   37 +++----------------------------------
 1 files changed, 3 insertions(+), 34 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/mq/consumer/ImageConsumer.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/mq/consumer/ImageConsumer.java
index 8b664dc..215b5b7 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/mq/consumer/ImageConsumer.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/mq/consumer/ImageConsumer.java
@@ -1,6 +1,5 @@
 package com.iailab.module.data.mq.consumer;
 
-import org.springframework.amqp.core.ExchangeTypes;
 import org.springframework.amqp.rabbit.annotation.*;
 import org.springframework.stereotype.Component;
 
@@ -12,43 +11,13 @@
  * @createTime 2024年11月05日
  */
 @Component
-@RabbitListener(
-        bindings = @QueueBinding(
-                value = @Queue(
-                        // 在 Queue 的名字上,使用 UUID 生成其后缀。这样,启动的 Consumer 的 Queue 不同,以达到广播消费的目的
-                        name = ImageMessage.DAHUA_ROUTING_KEY,
-                        // Consumer 关闭时,该队列就可以被自动删除了
-                        autoDelete = "true"
-                ),
-                exchange = @Exchange(
-                        name = ImageMessage.EXCHANGE,
-                        type = ExchangeTypes.TOPIC,
-                        declare = "false",
-                        autoDelete = "true"
-                )
-        )
-)
-@RabbitListener(
-        bindings = @QueueBinding(
-                value = @Queue(
-                        // 在 Queue 的名字上,使用 UUID 生成其后缀。这样,启动的 Consumer 的 Queue 不同,以达到广播消费的目的
-                        name = ImageMessage.HIKVISION_ROUTING_KEY,
-                        // Consumer 关闭时,该队列就可以被自动删除了
-                        autoDelete = "true"
-                ),
-                exchange = @Exchange(
-                        name = ImageMessage.EXCHANGE,
-                        type = ExchangeTypes.TOPIC,
-                        declare = "false",
-                        autoDelete = "true"
-                )
-        )
-)
+@RabbitListener(queues = ImageMessage.DAHUA_ROUTING_KEY)
+@RabbitListener(queues = ImageMessage.HIKVISION_ROUTING_KEY)
 public class ImageConsumer {
 
 //    @RabbitHandler
     public void process(ImageMessage imageMessage) throws InterruptedException {
-        System.out.println("1111111111111111111111111");
+        System.out.println("测试消费摄像头截图RabbitMQ消息----------------------");
         Thread.sleep(5000);
         System.out.println(imageMessage.toString());
         System.out.println(new Date());

--
Gitblit v1.9.3