From 50084de4a140dece61019b64fd91df041d242e47 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期一, 23 十二月 2024 15:28:53 +0800 Subject: [PATCH] getInfoByIds(Set<String> pointIds) 模型输入计划数据获取、补全 模型输入mergeitem存默认生成的outputid sampleInfo.setPointMap 避免重复查询point --- 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