|
|
@@ -75,8 +75,17 @@ public class MsgHeartRunner {
|
|
|
if ((System.currentTimeMillis() - deviceConnectionMsg.getLoginTime()) < 8 * 1000) {
|
|
|
return;
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
+ if(!deviceConnectionMsg.getLoginMsgSend()){
|
|
|
+ QueryWrapper<Device> deviceQueryWrapper = new QueryWrapper<>();
|
|
|
+ deviceQueryWrapper.eq("pile_code", devicePileCode).eq("disabled", DeviceOnlineStatus.NORMAL);
|
|
|
+ Device device = deviceService.getOne(deviceQueryWrapper);
|
|
|
+ if(device!=null){
|
|
|
+ loginFrame.loginMsgSend(deviceConnectionMsg,device);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
DeviceStatus oneDs = redisCache.getCacheMapValue(portStatusCacheKey, devicePileCode);
|
|
|
if(oneDs==null){
|