1、取消checkdeviceoff
This commit is contained in:
parent
2281f3f15f
commit
ef57bfa55e
@ -257,7 +257,7 @@ public class Forwarder {
|
|||||||
queryWrapper.eq("state",0);
|
queryWrapper.eq("state",0);
|
||||||
queryWrapper.eq("deviceid",offDeviceId);
|
queryWrapper.eq("deviceid",offDeviceId);
|
||||||
GnssStatus offDevice = gnssStatusMapper.getByDeviceId(offDeviceId);
|
GnssStatus offDevice = gnssStatusMapper.getByDeviceId(offDeviceId);
|
||||||
if(offDevice == null || offDevice.getState() != GnssStatus.STATE_OFFLINE) return;
|
if(offDevice == null) return;
|
||||||
|
|
||||||
GnssStatus refDevice1 = gnssStatusMapper.getByDeviceId(refDeviceId1);
|
GnssStatus refDevice1 = gnssStatusMapper.getByDeviceId(refDeviceId1);
|
||||||
if(refDevice1 == null || refDevice1.getState() == GnssStatus.STATE_OFFLINE) return;
|
if(refDevice1 == null || refDevice1.getState() == GnssStatus.STATE_OFFLINE) return;
|
||||||
|
|||||||
@ -34,11 +34,11 @@ public class ZNYForwarder extends Forwarder{
|
|||||||
/**
|
/**
|
||||||
* 每半小时转发GNSS解算结果
|
* 每半小时转发GNSS解算结果
|
||||||
*/
|
*/
|
||||||
@Scheduled(cron = "0 0/10 * * * ?") // 每30分钟执行一次
|
/*@Scheduled(cron = "0 0/10 * * * ?") // 每30分钟执行一次
|
||||||
private void checkDevice() {
|
private void checkDevice() {
|
||||||
logger.info("zny checkDevice");
|
logger.info("zny checkDevice");
|
||||||
checkOfflineDevice("2345078","2345073","2345065");
|
checkOfflineDevice("2345078","2345073","2345065");
|
||||||
}
|
}*/
|
||||||
|
|
||||||
@Scheduled(cron = "0 0/30 * * * ?") // 每30分钟执行一次
|
@Scheduled(cron = "0 0/30 * * * ?") // 每30分钟执行一次
|
||||||
private void forwardGnss() {
|
private void forwardGnss() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user