| | |
| | | throw new CoolException("站点状态不为空闲"); |
| | | } |
| | | |
| | | List<String> areaList = JSONObject.parseArray(basStation.getCrossZoneArea(), String.class); |
| | | if (!areaList.contains(area)) { |
| | | List<Long> areaList = basStation.getCrossZoneArea(); |
| | | if (!areaList.contains(Long.parseLong(area))) { |
| | | throw new CoolException("当前站点不支持目标库区"); |
| | | } |
| | | if (!Cools.isEmpty(basStation.getContainerType())) { |
| | | List<Long> longs1 = JSONObject.parseArray(basStation.getContainerType(), Long.class); |
| | | List<Long> longs1 = basStation.getContainerType(); |
| | | List<BasContainer> containers = basContainerService.list( |
| | | new LambdaQueryWrapper<BasContainer>() |
| | | .in(BasContainer::getContainerType, longs1) |
| | |
| | | throw new CoolException("站点状态不为空闲"); |
| | | } |
| | | if (!Cools.isEmpty(basStation.getContainerType())) { |
| | | List<Long> longs1 = JSONObject.parseArray(basStation.getContainerType(), Long.class); |
| | | List<Long> longs1 = basStation.getContainerType(); |
| | | List<BasContainer> containers = basContainerService.list( |
| | | new LambdaQueryWrapper<BasContainer>() |
| | | .in(BasContainer::getContainerType, longs1) |
| | |
| | | } |
| | | warehouseAreasList.add(warehouseArea); |
| | | } else { |
| | | List<String> areaList = JSONObject.parseArray(basStation.getCrossZoneArea(), String.class); |
| | | List<Long> areaList = basStation.getCrossZoneArea(); |
| | | if (areaList.isEmpty()) { |
| | | throw new CoolException("当前站点库区未配置"); |
| | | } |
| | |
| | | //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.盘 |
| | |
| | | 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); |