| | |
| | | |
| | | if(code == 0){ |
| | | for(AgvWrkMast agvWrkMast : agvWrkMastList){ |
| | | //下发容器达到通知 (输送线) |
| | | if("Y".equals(agvWrkMast.getMk())){ |
| | | int containerArrivedCode = agvWrkMastService.containerArrived(agvWrkMast); |
| | | if(containerArrivedCode != 0){ |
| | | log.error("容器到达指令下发失败"); |
| | | continue; |
| | | } |
| | | } |
| | | //202.RCS取货中 |
| | | agvWrkMast.setWrkSts(202L); |
| | | agvWrkMastService.updateById(agvWrkMast); |
| | |
| | | |
| | | @Transactional |
| | | public ReturnT<String> startCarryWrk(List<AgvWrkMast> agvWrkMastList) throws IOException { |
| | | log.info(agvWrkMastList.toString()); |
| | | //log.info(agvWrkMastList.toString()); |
| | | //任务过滤,过滤掉已存在相同目标库位的工作档 |
| | | agvWrkMastList = filter(agvWrkMastList); |
| | | //agvWrkMastList = filter(agvWrkMastList); |
| | | int code = agvWrkMastService.startWrk(agvWrkMastList,"carry"); |
| | | log.info(agvWrkMastList.toString()); |
| | | //log.info(agvWrkMastList.toString()); |
| | | if (Cools.isEmpty(agvWrkMastList)){ |
| | | return SUCCESS; |
| | | } |