| | |
| | | } |
| | | WrkMast mast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", params.getSuperTaskNo())); |
| | | if (Objects.isNull(mast)) { |
| | | // pakoutOrderPause 中止时,WMS 在 WCS 确认取消后会立即本地取消并归档任务。 |
| | | // 如果 WCS 后续又补发 task_cancel 回调,此时当前工作档已不存在,按幂等成功处理。 |
| | | if ("task".equalsIgnoreCase(params.getNotifyType()) && "task_cancel".equalsIgnoreCase(params.getMsgType())) { |
| | | return R.ok(); |
| | | } |
| | | throw new CoolException("任务档不存在!!"); |
| | | } |
| | | |
| | |
| | | //任务 |
| | | if ("task_complete".equalsIgnoreCase(params.getMsgType())) { |
| | | |
| | | if (mast.getIoType() == 1 || mast.getIoType() == 2 || mast.getIoType() == 10 || mast.getIoType() == CHANGE_LOC_IO_TYPE) { |
| | | if (mast.getIoType() == 1 || mast.getIoType() == 2 || mast.getIoType() == 11 || mast.getIoType() == CHANGE_LOC_IO_TYPE) { |
| | | mast.setWrkSts(4L); |
| | | } else if (isOutboundTask(mast) && canMarkOutboundTaskComplete(mast)) { |
| | | mast.setWrkSts(14L); |
| | |
| | | if (Objects.isNull(wrkMast)) { |
| | | return; |
| | | } |
| | | if (wrkMast.getIoType()==1 || wrkMast.getIoType()==10) { |
| | | if (wrkMast.getIoType()==1 || wrkMast.getIoType()==11) { |
| | | wrkMast.setWrkSts(2L); |
| | | wrkMast.setModiTime(new Date()); |
| | | wrkMastService.updateById(wrkMast); |