前置联调
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user