| | |
| | | storageEscalationParam.setWCSErrorMessage(storageEscalationParam.getWCSErrorMessage() + errMsg); |
| | | } |
| | | storageEscalationParam.setBarcode(BoxNo); |
| | | storageEscalationParam.setMatIdList(staProtocol.getMatIdList()); |
| | | log.info("组托入库={}", storageEscalationParam); |
| | | TaskWrk taskWrk = toWmsService.getLocNoFromWms(storageEscalationParam); |
| | | if (taskWrk == null) { |
| | |
| | | // 获取工作状态为2(设备上走)的入库工作档 |
| | | TaskWrk taskWrk = taskWrkMapper.selectPakIn(slave.getId(), staProtocol.getWorkNo().intValue(), staDesc.getStnNo().toString()); |
| | | if (null == taskWrk) { |
| | | continue; |
| | | } |
| | | |
| | | LocMast locMast = locMastService.selectByLocNo(taskWrk.getTargetPoint()); |
| | | if(!locMast.getLocSts().equals("O") && taskWrk.getWrkSts() == 2) { |
| | | log.error("入库WMS分配库位{}有误,库位状态为{}",locMast.getLocNo(),locMast.getLocSts()); |
| | | taskWrk.setWrkSts(5); |
| | | taskWrk.setMemo("WMS分配库位有误"); |
| | | taskWrkService.updateById(taskWrk); |
| | | continue; |
| | | } |
| | | |
| | |
| | | CrnOperatorParam crnOperatorParam = new CrnOperatorParam(); |
| | | crnOperatorParam.setCrnNo(crn.getId()); |
| | | R r = crnController.crnTaskComplete(crnOperatorParam); |
| | | // Thread.sleep(1000); |
| | | Thread.sleep(1000); |
| | | if (!r.get("code").equals(200)) { |
| | | return; |
| | | } |