From c3eebcc58f815031b843768cd18bd998391b2f06 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 25 三月 2025 10:41:22 +0800 Subject: [PATCH] Merge branch 'master' of http://dlindusit.com:53929/r/shasteel --- shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/QueuePredictFinishConfig.java | 38 +++++++++++++++++++++++++++++++++++--- 1 files changed, 35 insertions(+), 3 deletions(-) diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/QueuePredictFinishConfig.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/QueuePredictFinishConfig.java index 96f2350..b28d52a 100644 --- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/QueuePredictFinishConfig.java +++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/QueuePredictFinishConfig.java @@ -1,7 +1,6 @@ package com.iailab.module.shasteel.mq.config; -import com.iailab.module.shasteel.mq.common.RoutingConstant; -import com.iailab.module.shasteel.mq.consumer.PredictFinishMessage; +import com.iailab.module.shasteel.mq.common.constant.RoutingConstant; import org.springframework.amqp.core.Binding; import org.springframework.amqp.core.BindingBuilder; import org.springframework.amqp.core.Queue; @@ -18,15 +17,34 @@ public class QueuePredictFinishConfig { // 队列名称 public final static String QUEUE_NAME = "IaiabFastShateel.Model.PredictFinish"; + public final static String QUEUE_NAME2 = "IaiabFastShateel.Model.PredictFinish2"; + + public final static String QUEUE_NAME_ELEC = "IaiabFastShateel.Model.PredictFinish.Elec"; + + public final static String QUEUE_NAME_LDG = "IaiabFastShateel.Model.PredictFinish.LDG"; @Bean public Queue predictFinishQueue() { return new Queue(QueuePredictFinishConfig.QUEUE_NAME); } + @Bean + public Queue predictFinishQueue2() { + return new Queue(QueuePredictFinishConfig.QUEUE_NAME2); + } + + @Bean + public Queue predictFinishQueueElec() { + return new Queue(QueuePredictFinishConfig.QUEUE_NAME_ELEC); + } + + @Bean + public Queue predictFinishQueueLDG() { + return new Queue(QueuePredictFinishConfig.QUEUE_NAME_LDG); + } @Bean TopicExchange predictFinishExchange() { - return new TopicExchange(PredictFinishMessage.EXCHANGE); + return new TopicExchange(RoutingConstant.EXCHANGE); } // 注意通配符*和#的用法 @@ -34,4 +52,18 @@ Binding bindingExchangeMessagePF() { return BindingBuilder.bind(predictFinishQueue()).to(predictFinishExchange()).with(RoutingConstant.Iailab_Model_PredictFinish); } + @Bean + Binding bindingExchangeMessagePF2() { + return BindingBuilder.bind(predictFinishQueue2()).to(predictFinishExchange()).with(RoutingConstant.Iailab_Model_PredictFinish); + } + + @Bean + Binding bindingExchangeMessageElec() { + return BindingBuilder.bind(predictFinishQueueElec()).to(predictFinishExchange()).with(RoutingConstant.Iailab_Model_PredictFinish_Elec); + } + + @Bean + Binding bindingExchangeMessageLDG() { + return BindingBuilder.bind(predictFinishQueueLDG()).to(predictFinishExchange()).with(RoutingConstant.Iailab_Model_PredictFinish_LDG); + } } -- Gitblit v1.9.3