From ed0fb1e88b2851234052b503c2390750044645dd Mon Sep 17 00:00:00 2001
From: aijinhui <aijinhui>
Date: 星期四, 12 十月 2023 09:28:50 +0800
Subject: [PATCH] mq测试
---
ard-work/src/main/java/com/ruoyi/statistical/controller/StatisticalController.java | 2 +-
ruoyi-admin/src/main/resources/application-prod.yml | 2 +-
ard-work/src/main/java/com/ruoyi/utils/mqtt/MqttConsumerCallback.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/statistical/controller/StatisticalController.java b/ard-work/src/main/java/com/ruoyi/statistical/controller/StatisticalController.java
index 5aea884..4708e92 100644
--- a/ard-work/src/main/java/com/ruoyi/statistical/controller/StatisticalController.java
+++ b/ard-work/src/main/java/com/ruoyi/statistical/controller/StatisticalController.java
@@ -78,7 +78,7 @@
//绉诲姩缁堢
return Results.succeed(statisticalService.apponekeyYear(esParam));
}else if("1008".equals(type)){
- //绉诲姩缁堢
+ //闆疯揪鍋滄満
return Results.succeed(statisticalService.pumpYear(esParam));
}else if("1010".equals(type)){
//鐢靛瓙鍥存爮
diff --git a/ard-work/src/main/java/com/ruoyi/utils/mqtt/MqttConsumerCallback.java b/ard-work/src/main/java/com/ruoyi/utils/mqtt/MqttConsumerCallback.java
index 62a2ca2..7bbce74 100644
--- a/ard-work/src/main/java/com/ruoyi/utils/mqtt/MqttConsumerCallback.java
+++ b/ard-work/src/main/java/com/ruoyi/utils/mqtt/MqttConsumerCallback.java
@@ -80,7 +80,7 @@
}
if (topic.equals("radarWellData"))
{
- System.out.println(new String(message.getPayload(), StandardCharsets.UTF_8));
+ System.err.println(new String(message.getPayload(), StandardCharsets.UTF_8));
IStorageMinioEventService storageMinioEventService = SpringUtils.getBean(IStorageMinioEventService.class);
storageMinioEventService.parseStorageMinioEvent(new String(message.getPayload(), StandardCharsets.UTF_8));
}
diff --git a/ruoyi-admin/src/main/resources/application-prod.yml b/ruoyi-admin/src/main/resources/application-prod.yml
index dfb8cd4..b11e3f0 100644
--- a/ruoyi-admin/src/main/resources/application-prod.yml
+++ b/ruoyi-admin/src/main/resources/application-prod.yml
@@ -94,7 +94,7 @@
clientId: server229
username: admin
password: xzx12345
- topic: minioEvent,apponekey,camera,external
+ topic: minioEvent,apponekey,camera,external,radarWellData
timeout: 100
keepalive: 60
enabled: true
\ No newline at end of file
--
Gitblit v1.9.3