| | |
| | | } |
| | | } |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | @Scheduled(cron = "0/5 * * * * ? ") |
| | | private void executeArm(){ |
| | | List<BasArmMast> basArmMastList = basArmMastService.selectList(new EntityWrapper<BasArmMast>().eq("status", 6)); |
| | | if (basArmMastList.isEmpty()) { |
| | |
| | | } |
| | | } |
| | | |
| | | @Scheduled(cron = "0/10 * * * * ? ") |
| | | private void executeAgv(){ |
| | | List<BasArmMast> basArmMastList = basArmMastService.selectList(new EntityWrapper<BasArmMast>().eq("status", 6)); |
| | | if (basArmMastList.isEmpty()) { |
| | | return; |
| | | } |
| | | for (BasArmMast basArmMast : basArmMastList) { |
| | | ReturnT<String> result = workLogHandler.startArm(basArmMast); |
| | | if (!result.isSuccess()) { |
| | | log.error("ARM工作档[id={}]历史档处理失败", basArmMast.getId()); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |