1、优化告警处理
This commit is contained in:
parent
164e4f3174
commit
0211098b05
@ -46,7 +46,7 @@ public class DeviceStatusChecker {
|
|||||||
GnssDeviceMapper deviceMapper;
|
GnssDeviceMapper deviceMapper;
|
||||||
static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
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 {
|
public void checkDeviceState() throws ExecutionException, InterruptedException {
|
||||||
List<GnssGroup> groupCfgs = groupMapper.selectList(null);
|
List<GnssGroup> groupCfgs = groupMapper.selectList(null);
|
||||||
HashMap<Integer,Integer> group_cycle_map=new HashMap<>();
|
HashMap<Integer,Integer> group_cycle_map=new HashMap<>();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user