| | |
| | | |
| | | } |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") //移库任务下发 |
| | | // @Scheduled(cron = "0/3 * * * * ? ") //移库任务下发 |
| | | private void ShuttleMoveTaskSend(){ |
| | | List<WrkMast> wrkMasts = wrkMastService.selectList(new EntityWrapper<WrkMast>().eq("wrk_sts", 11).eq("io_type",11)); |
| | | if (wrkMasts.isEmpty()) { |
| | |
| | | } |
| | | try { |
| | | for (WrkMast wrkMast : wrkMasts) { |
| | | LocMast destLoc = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", wrkMast.getSourceLocNo())); |
| | | LocMast originLoc = locMastService.selectOne(new EntityWrapper<LocMast>().eq("source_loc_no", wrkMast.getSourceLocNo())); |
| | | LocMast destLoc = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", wrkMast.getLocNo())); |
| | | LocMast originLoc = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", wrkMast.getSourceLocNo())); |
| | | if (originLoc == null || destLoc == null) { |
| | | throw new CoolException("下发四向车wcs任务失败"); |
| | | } |