| | |
| | | if (Cools.isEmpty(basStation)) { |
| | | throw new CoolException("未找到接驳站点信息,请检查站点状态"); |
| | | } |
| | | List<Long> ids = new ArrayList<>(); |
| | | ids.add(basStation.getArea()); |
| | | if (basStation.getIsCrossZone() == 1) { |
| | | String content = basStation.getCrossZoneArea().substring(1, basStation.getCrossZoneArea().length() - 1); |
| | | String[] parts = content.split(","); |
| | | for (int i = 0; i < parts.length; i++) { |
| | | ids.add(Long.parseLong(parts[i].trim())); |
| | | } |
| | | } |
| | | List<Long> ids = basStation.getCrossZoneArea(); |
| | | // ids.add(basStation.getArea()); |
| | | // if (basStation.getIsCrossZone() == 1) { |
| | | // String content = basStation.getCrossZoneArea().substring(1,.length() - 1); |
| | | // String[] parts = content.split(","); |
| | | // for (int i = 0; i < parts.length; i++) { |
| | | // ids.add(Long.parseLong(parts[i].trim())); |
| | | // } |
| | | // } |
| | | List<WarehouseAreas> warehouseAreasList = warehouseAreasService.list(new LambdaQueryWrapper<WarehouseAreas>() |
| | | .in(WarehouseAreas::getId, ids) |
| | | ); |
| | |
| | | if (Cools.isEmpty(waitPakinItems)) { |
| | | throw new CoolException("数据错误,未找到组托明细"); |
| | | } |
| | | List<Long> ids = new ArrayList<>(); |
| | | ids.add(basStation.getArea()); |
| | | if (basStation.getIsCrossZone() == 1) { |
| | | String content = basStation.getCrossZoneArea().substring(1, basStation.getCrossZoneArea().length() - 1); |
| | | String[] parts = content.split(","); |
| | | for (int i = 0; i < parts.length; i++) { |
| | | ids.add(Long.parseLong(parts[i].trim())); |
| | | } |
| | | } |
| | | List<Long> ids = basStation.getCrossZoneArea(); |
| | | // ids.add(basStation.getArea()); |
| | | // if (basStation.getIsCrossZone() == 1) { |
| | | // String content = basStation.getCrossZoneArea().substring(1, basStation.getCrossZoneArea().length() - 1); |
| | | // String[] parts = content.split(","); |
| | | // for (int i = 0; i < parts.length; i++) { |
| | | // ids.add(Long.parseLong(parts[i].trim())); |
| | | // } |
| | | // } |
| | | List<WarehouseAreas> warehouseAreasList = warehouseAreasService.list(new LambdaQueryWrapper<WarehouseAreas>() |
| | | .in(WarehouseAreas::getId, ids) |
| | | ); |
| | |
| | | |
| | | BasStation isBarcodeSta = basStationService.getOne(new LambdaQueryWrapper<BasStation>() |
| | | .eq(BasStation::getBarcode, barcode) |
| | | , false |
| | | .last("limit 1") |
| | | ); |
| | | if (!Cools.isEmpty(isBarcodeSta)) { |
| | | throw new CoolException("该条码已被" + isBarcodeSta.getStationName() + "站绑定"); |
| | |
| | | throw new CoolException("未找到站点信息"); |
| | | } |
| | | if (!Cools.isEmpty(basStation.getContainerType())) { |
| | | List<Long> longs1 = JSONObject.parseArray(basStation.getContainerType(), Long.class); |
| | | List<Long> longs1 = basStation.getCrossZoneArea(); |
| | | List<BasContainer> containers = basContainerService.list( |
| | | new LambdaQueryWrapper<BasContainer>() |
| | | .in(BasContainer::getContainerType, longs1) |
| | |
| | | throw new CoolException("站点状态不为空闲"); |
| | | } |
| | | if (basStation.getType().equals(StationTypeEnum.STATION_TYPE_MUTI.type)) { |
| | | throw new CoolException("站点为智能站点,禁止呼叫AGV"); |
| | | throw new CoolException("站点为光电站点,禁止呼叫AGV"); |
| | | } |
| | | |
| | | 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) |