Merge remote-tracking branch 'origin/master'

This commit is contained in:
tiger_zhou 2023-06-15 13:25:14 +08:00
commit 7ade47acac

View File

@ -25,7 +25,7 @@ public class StatusDataRepository {
/**
* 当前所有设备状态信息
*/
private Map<String, GeneratedMessageV3.Builder> statusDataVOMap = new ConcurrentHashMap<>();
private final Map<String, GeneratedMessageV3.Builder> statusDataVOMap = new ConcurrentHashMap<>();
/**
* 初始化时放入设备状态
@ -48,10 +48,9 @@ public class StatusDataRepository {
/**
* 对比获取设备变化了的状态信息
* @param deviceStatusList 设备状态列表
* @return 发生变化的状态信息
*/
public List<Message> collectAllCompareResult(List<GeneratedMessageV3.Builder> deviceStatusList) {
public List<Message> collectAllCompare() {
List<Message> resultMessage = new LinkedList<>();
deviceStatusBuilder.forEach((k,v) -> {
Message message = null;