前置联调

This commit is contained in:
hzj
2025-05-15 11:31:24 +08:00
parent 4522313aea
commit 976d4bbfd1
3 changed files with 37 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ public class RecallMessage {
private String nodeId;
private List<String> monitorId;
private String guid;
private List<RecallDTO> data;
@Data
public static class RecallDTO {
@@ -41,6 +41,7 @@ public class RecallMessage {
*/
@ApiModelProperty("0/1稳态/暂态)")
private String dataType;
private String nodeId;
private List<String> monitorId;
private List<String> timeInterval;

View File

@@ -83,7 +83,7 @@ public class TopicReplyConsumer extends EnhanceConsumerMessageHandler<TopicReply
@Override
protected void handleMessage(TopicReplyDTO message) {
//业务处理
redisUtil.saveByKeyWithExpire(RedisKeyPrefix.TOPIC_REPLY.concat(message.getGuid()),message.getResult(),60*60L);
redisUtil.saveByKeyWithExpire(RedisKeyPrefix.TOPIC_REPLY.concat(message.getGuid()),JSONObject.toJSONString(message),60*60L);
}