| | |
| | | |
| | | @Scheduled(cron = "0/5 * * * * ? ") |
| | | private synchronized void autoCharge(){ |
| | | if (!configService.getVal("TaskAssignMode", Boolean.class)) { return; } |
| | | List<Agv> agvList = agvService.list(new LambdaQueryWrapper<Agv>().eq(Agv::getStatus, StatusType.ENABLE.val)); |
| | | for (Agv agv : agvList) { |
| | | AgvDetail agvDetail = agvDetailService.selectByAgvId(agv.getId()); |
| | |
| | | @Scheduled(cron = "0/1 * * * * ? ") |
| | | // @Scheduled(cron = "0 */2 * * * ? ") |
| | | private synchronized void autoStandby(){ |
| | | if (!configService.getVal("TaskAssignMode", Boolean.class)) { return; } |
| | | if (!configService.getVal("automaticStandbyPosition", Boolean.class)) { return; } |
| | | |
| | | List<Agv> agvList = agvService.list(new LambdaQueryWrapper<Agv>().eq(Agv::getStatus, StatusType.ENABLE.val)); |