|
@@ -63,7 +63,7 @@ public class DeviceOfflineDetectionService {
|
|
* 定期检测设备状态是否离线
|
|
* 定期检测设备状态是否离线
|
|
* 每 5 分钟运行一次
|
|
* 每 5 分钟运行一次
|
|
*/
|
|
*/
|
|
- @Scheduled(fixedRate = 60000) // 每 5 分钟(以毫秒为单位)
|
|
|
|
|
|
+ @Scheduled(fixedRate = 300000) // 每 5 分钟(以毫秒为单位)
|
|
// @Scheduled(fixedRateString = "${coldchain.device-offline-interval:300000}")
|
|
// @Scheduled(fixedRateString = "${coldchain.device-offline-interval:300000}")
|
|
public void checkDeviceStatus() {
|
|
public void checkDeviceStatus() {
|
|
log.info("开始检测离线设备状态...");
|
|
log.info("开始检测离线设备状态...");
|