From 4d505e3fe809c245400ecdb80918cbdb8da80e25 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期六, 18 一月 2025 16:51:27 +0800 Subject: [PATCH] @RabbitListener(queues = QueuePredictFinishConfig.QUEUE_NAME_ELEC) --- shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelElecPredictFinishConsumer.java | 2 +- shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/QueuePredictFinishConfig.java | 4 ++-- 2 files changed, 3 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 b2bc77b..2aeb1f1 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 @@ -18,7 +18,7 @@ // 队列名称 public final static String QUEUE_NAME = "IaiabFastShateel.Model.PredictFinish"; - public final static String QUEUE_NAME_Elec = "IaiabFastShateel.Model.PredictFinish.Elec"; + public final static String QUEUE_NAME_ELEC = "IaiabFastShateel.Model.PredictFinish.Elec"; @Bean public Queue predictFinishQueue() { @@ -27,7 +27,7 @@ @Bean public Queue predictFinishQueueElec() { - return new Queue(QueuePredictFinishConfig.QUEUE_NAME_Elec); + return new Queue(QueuePredictFinishConfig.QUEUE_NAME_ELEC); } @Bean diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelElecPredictFinishConsumer.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelElecPredictFinishConsumer.java index e7432ee..43b8c5e 100644 --- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelElecPredictFinishConsumer.java +++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelElecPredictFinishConsumer.java @@ -37,7 +37,7 @@ * * @param message */ - @RabbitListener(queues = QueuePredictFinishConfig.QUEUE_NAME) + @RabbitListener(queues = QueuePredictFinishConfig.QUEUE_NAME_ELEC) public void listen(Message message) { String messageBody = new String(message.getBody()); log.info("开始执行电力调度,messageBody:" + messageBody); -- Gitblit v1.9.3