| | |
| | | throw new CoolException("站点状态不为空闲"); |
| | | } |
| | | |
| | | List<String> areaList = JSONObject.parseArray(basStation.getCrossZoneArea(), String.class); |
| | | if (!areaList.contains(area)) { |
| | | List<Integer> areaList = basStation.getCrossZoneArea(); |
| | | if (!areaList.contains(Integer.parseInt(area))) { |
| | | throw new CoolException("当前站点不支持目标库区"); |
| | | } |
| | | if (!Cools.isEmpty(basStation.getContainerType())) { |
| | | List<Long> longs1 = JSONObject.parseArray(basStation.getContainerType(), Long.class); |
| | | List<Integer> longs1 = basStation.getContainerType(); |
| | | List<BasContainer> containers = basContainerService.list( |
| | | new LambdaQueryWrapper<BasContainer>() |
| | | .in(BasContainer::getContainerType, longs1) |
| | |
| | | //110.空板出库 |
| | | complateOutStockEmpty(task, loginUserId); |
| | | } else if (task.getTaskType().equals(TaskType.TASK_TYPE_CROSS_DOCKING_OUT.type)) { |
| | | //109.越库 |
| | | //109.备货 |
| | | complateOutStockDocking(task, loginUserId); |
| | | } else if (task.getTaskType().equals(TaskType.TASK_TYPE_CHECK_OUT.type)) { |
| | | //107.盘 |
| | |
| | | throw new CoolException("库位信息更新失败!!"); |
| | | } |
| | | |
| | | |
| | | |
| | | List<TaskItem> taskItems = taskItemService.list(new LambdaQueryWrapper<TaskItem>().eq(TaskItem::getTaskId, task.getId())); |
| | | if (taskItems.isEmpty()) { |
| | | throw new CoolException("任务明细不存在!!"); |
| | | } |
| | | |
| | | List<LocItem> list = locItemService.list(new LambdaQueryWrapper<LocItem>().eq(LocItem::getLocId, loc.getId())); |
| | | list.forEach(item -> { |
| | | item.setOrderId(taskItems.get(0).getSourceId()); |
| | | item.setType(taskItems.get(0).getOrderType()); |
| | | item.setOrderItemId(taskItems.get(0).getSource()); |
| | | item.setPlatOrderCode(taskItems.get(0).getSourceCode()); |
| | | item.setWkType(taskItems.get(0).getWkType()); |
| | | }); |
| | | |
| | | locItemService.updateBatchById(list); |
| | | |
| | | TaskItem taskItem = taskItems.stream().findFirst().get(); |
| | | //保存入出库流水 |
| | | saveStockItems(taskItems, task, null, null, taskItem.getWkType(), OrderType.ORDER_IN.type, loginUserId); |