| | |
| | | @Autowired |
| | | private NavigateUtils navigateUtils; |
| | | @Autowired |
| | | private CommonService commonService; |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | |
| | | /** |
| | |
| | | Date now = new Date(); |
| | | LocMast sourceLocMast = locMastService.queryByLoc(param.getSourceLocNo()); |
| | | if (null == sourceLocMast) { |
| | | throw new CoolException("源库位不存在"); |
| | | throw new CoolException(param.getSourceLocNo() + "源库位不存在"); |
| | | } |
| | | |
| | | if (!sourceLocMast.getLocSts().equals("F")) { |
| | | throw new CoolException("源库位不处于在库状态"); |
| | | throw new CoolException(sourceLocMast.getLocNo() + "源库位不处于在库状态"); |
| | | } |
| | | |
| | | LocMast locMast = locMastService.queryByLoc(param.getLocNo()); |
| | | if (null == locMast) { |
| | | throw new CoolException("目标库位不存在"); |
| | | throw new CoolException(param.getLocNo() + "目标库位不存在"); |
| | | } |
| | | |
| | | if (!locMast.getLocSts().equals("O")) { |
| | | throw new CoolException("目标库位不处于空库状态"); |
| | | throw new CoolException(locMast.getLocNo() + "目标库位不处于空库状态"); |
| | | } |
| | | |
| | | double ioPri = 800D; |
| | |
| | | ioPri = param.getTaskPri().doubleValue(); |
| | | } |
| | | |
| | | Integer sourceCrnNo = commonService.findCrnNoByLocNo(sourceLocMast.getLocNo()); |
| | | Integer sourceCrnNo = this.findCrnNoByLocNo(sourceLocMast.getLocNo()); |
| | | if (sourceCrnNo == null) { |
| | | throw new CoolException("未找到对应堆垛机"); |
| | | } |
| | | |
| | | Integer crnNo = commonService.findCrnNoByLocNo(locMast.getLocNo()); |
| | | Integer crnNo = this.findCrnNoByLocNo(locMast.getLocNo()); |
| | | if (crnNo == null) { |
| | | throw new CoolException("未找到对应堆垛机"); |
| | | } |
| | |
| | | Date now = new Date(); |
| | | LocMast locMast = locMastService.queryByLoc(param.getLocNo()); |
| | | if (null == locMast) { |
| | | throw new CoolException("目标库位不存在"); |
| | | throw new CoolException(param.getLocNo() + "目标库位不存在"); |
| | | } |
| | | |
| | | if (!locMast.getLocSts().equals("O")) { |
| | | throw new CoolException("目标库位不处于空库状态"); |
| | | throw new CoolException(locMast.getLocNo() + "目标库位不处于空库状态"); |
| | | } |
| | | |
| | | double ioPri = 100D; |
| | |
| | | ioPri = param.getTaskPri().doubleValue(); |
| | | } |
| | | |
| | | Integer crnNo = commonService.findCrnNoByLocNo(locMast.getLocNo()); |
| | | Integer crnNo = this.findCrnNoByLocNo(locMast.getLocNo()); |
| | | if (crnNo == null) { |
| | | throw new CoolException("未找到对应堆垛机"); |
| | | } |
| | |
| | | ioPri = param.getTaskPri().doubleValue(); |
| | | } |
| | | |
| | | Integer crnNo = commonService.findCrnNoByLocNo(locMast.getLocNo()); |
| | | Integer crnNo = this.findCrnNoByLocNo(locMast.getLocNo()); |
| | | if (crnNo == null) { |
| | | throw new CoolException("未找到对应堆垛机"); |
| | | } |
| | | |
| | | Integer sourceStationId = commonService.findOutStationId(crnNo, param.getStaNo()); |
| | | Integer sourceStationId = this.findOutStationId(crnNo, param.getStaNo()); |
| | | if (sourceStationId == null) { |
| | | throw new CoolException("未找到输送目标站点可走行路径"); |
| | | } |