|
|
|
@ -72,7 +72,7 @@ public class BasedataMontHeartBeatConsumerHandle implements IBasedataMontDataHan |
|
|
|
String patrolDeviceCode = book.getPatrolDeviceCode(); |
|
|
|
Long eqpBookId = book.getEqpBookId(); |
|
|
|
int heartFromTcpServer = jsonObject.getInteger("HeartBeatInterval"); |
|
|
|
int heartBeatInterval = (int) Math.floor((double) heartFromTcpServer * 1.5D); |
|
|
|
int heartBeatInterval = (int) Math.floor((double) heartFromTcpServer * 120D); |
|
|
|
Date nowTime = DateUtils.getNowDate(); |
|
|
|
this.patrolDeviceOnlineHandle(patrolDeviceCode, eqpBookId, heartFromTcpServer, heartBeatInterval, nowTime); |
|
|
|
} |
|
|
|
|