1、优化告警处理

This commit is contained in:
weidong 2024-02-14 15:06:49 +08:00
parent 164e4f3174
commit 0211098b05

View File

@ -46,7 +46,7 @@ public class DeviceStatusChecker {
GnssDeviceMapper deviceMapper;
static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
@Scheduled(cron = "0 18,59 * * * ?") // 每半时执行一次
@Scheduled(cron = "0 18,48 * * * ?") // 每半时执行一次
public void checkDeviceState() throws ExecutionException, InterruptedException {
List<GnssGroup> groupCfgs = groupMapper.selectList(null);
HashMap<Integer,Integer> group_cycle_map=new HashMap<>();