mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-27 06:25:13 +08:00
update 修复离线bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user