| | |
| | | if (!taskService.updateById(task)) { |
| | | throw new CoolException("任务状态修改失败!!"); |
| | | } |
| | | // 9.1 入/出库结果上报:拣料再入库/盘点再入库完成后通知云仓(与定时任务闭环一致) |
| | | reportInOutResultToCloud(task, loc, taskItems, null, true); |
| | | // 盘点再入库上报云仓入库完成;拣料再入库跳过(入库侧 qty 取 anfme 为托盘余量;云仓出库实发在出库完成侧) |
| | | // reportInOutResultToCloud(task, loc, taskItems, null, true); |
| | | if (!TaskType.TASK_TYPE_PICK_IN.type.equals(task.getTaskType())) { |
| | | reportInOutResultToCloud(task, loc, taskItems, null, true); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | if (group == null || group.isEmpty()) continue; |
| | | TaskItem rep = group.get(0); |
| | | TaskItem ti = new TaskItem(); |
| | | ti.setTaskId(pickInTask.getId()); |
| | | ti.setMatnrId(rep.getMatnrId()).setMaktx(rep.getMaktx()).setMatnrCode(rep.getMatnrCode()); |
| | | ti.setBatch(rep.getBatch()).setFieldsIndex(rep.getFieldsIndex()).setUnit(rep.getUnit()).setSpec(rep.getSpec()).setModel(rep.getModel()); |
| | | ti.setAnfme(rem).setQty(0.0); |
| | | BeanUtils.copyProperties(rep, ti); |
| | | ti.setId(null) |
| | | .setTaskId(pickInTask.getId()) |
| | | .setAnfme(rem) |
| | | .setQty(0.0) |
| | | .setWorkQty(0.0) |
| | | .setCreateBy(loginUserId) |
| | | .setUpdateBy(loginUserId) |
| | | .setCreateTime(new Date()) |
| | | .setUpdateTime(new Date()); |
| | | taskItemService.save(ti); |
| | | LocItemWorking w = new LocItemWorking(); |
| | | w.setTaskId(pickInTask.getId()); |