| | |
| | | private AgvBasMapper agvBasMapper; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 删除告警日志 |
| | | */ |
| | | @Scheduled(cron = "0 0 1 * * ? ") |
| | | private void delWarnLog() { |
| | | public void delWarnLog() { |
| | | String format = DateUtil.format(DateUtil.offsetMonth(new Date(), -1), "yyyy-MM-dd HH:mm:ss"); |
| | | List<AgvWarnLog> agvWarnList = agvWarnLogService.selectList(new EntityWrapper<AgvWarnLog>().le("modi_time", format)); |
| | | for (AgvWarnLog agvWarn : agvWarnList) { |
| | |
| | | * 超过一分钟没更新的,删除 |
| | | */ |
| | | @Scheduled(fixedDelay = 10000) |
| | | private void del() { |
| | | public void del() { |
| | | String format = DateUtil.format(DateUtil.offsetMinute(new Date(), -1), "yyyy-MM-dd HH:mm:ss"); |
| | | List<AgvWarn> agvWarnList = agvWarnService.selectList(new EntityWrapper<AgvWarn>().le("modi_time", format)); |
| | | for (AgvWarn agvWarn : agvWarnList) { |
| | |
| | | } |
| | | |
| | | @Scheduled(fixedDelay = 20000) |
| | | private void report() { |
| | | public void report() { |
| | | List<Agv> agvs = agvBasMapper.selectList(new EntityWrapper<Agv>()); |
| | | Config first = configService.selectOne(new EntityWrapper<Config>().eq("code", "AGV_WARN_RATE1")); |
| | | Config second = configService.selectOne(new EntityWrapper<Config>().eq("code", "AGV_WARN_RATE2")); |