update 修复离线bug

This commit is contained in:
Guoqs
2026-03-21 09:20:58 +08:00
parent c9d7f505b6
commit 0e763d4fe2
9 changed files with 687 additions and 207 deletions

View File

@@ -905,6 +905,9 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
*/
@Override
public boolean checkPileOffLine(String pileSn) {
if (Boolean.TRUE.equals(redisCache.hasKey(CacheConstants.PILE_OFFLINE_CONFIRMED + pileSn))) {
return true;
}
boolean flag = false;
// 获取桩最后连接时间最后连接到平台的时间在3分钟之前判定为离线
String lastConnectionTime = redisCache.getCacheObject(CacheConstants.PILE_LAST_CONNECTION + pileSn);