mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-16 15:58:41 +08:00
update 校验channel是否保存
This commit is contained in:
@@ -31,14 +31,17 @@ public class PileChannelEntity {
|
|||||||
String channelId = channel.id().asLongText();
|
String channelId = channel.id().asLongText();
|
||||||
if (!StringUtils.equals(sourceChannelId, channelId)) {
|
if (!StringUtils.equals(sourceChannelId, channelId)) {
|
||||||
// 不一致则更新
|
// 不一致则更新
|
||||||
|
log.info("checkChannel-manager中pileSn:{}的连接不一致, 老channelId:{}, 保存新的channel:{}", pileSn, sourceChannelId, channelId);
|
||||||
manager.put(pileSn, channel);
|
manager.put(pileSn, channel);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 为空就put
|
// 为空就put
|
||||||
|
log.info("checkChannel-manager中pileSn:{}的连接为空,保存新的channel:{}", pileSn, channel.id().asLongText());
|
||||||
manager.put(pileSn, channel);
|
manager.put(pileSn, channel);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 如果manager中不存在pileSn的连接,则保存
|
// 如果manager中不存在pileSn的连接,则保存
|
||||||
|
log.info("checkChannel-manager中不存在pileSn:{}的连接,保存新的channel:{}", pileSn, channel.id().asLongText());
|
||||||
manager.put(pileSn, channel);
|
manager.put(pileSn, channel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user