| | |
| | | String targetLoc = LocManageUtil.getTargetLoc(Long.parseLong(area)); |
| | | |
| | | taskService.generateAGVTasks(waitPakin, targetLoc, sta, deviceSite.getDeviceCode(),loginUserId); |
| | | |
| | | basStation.setUseStatus(LocStsType.LOC_STS_TYPE_R.type); |
| | | if (!basStation.getType().equals(0)){ |
| | | basStation.setUseStatus(LocStsType.LOC_STS_TYPE_R.type); |
| | | } |
| | | if (!basStationService.updateById(basStation)) { |
| | | throw new CoolException("更新站点状态失败"); |
| | | } |
| | |
| | | //验证基础信息 |
| | | BasStation basStation = checkStaStatus(barcode, sta,waitPakinPda.getArea()); |
| | | //更新站点状态 |
| | | basStation.setUseStatus(LocStsType.LOC_STS_TYPE_F.type); |
| | | if (!basStation.getType().equals(0)){ |
| | | basStation.setUseStatus(LocStsType.LOC_STS_TYPE_F.type); |
| | | } |
| | | basStation.setBarcode(barcode); |
| | | if (!basStationService.updateById(basStation)) { |
| | | throw new CoolException("更新站点状态失败"); |
| | |
| | | throw new CoolException("未找到站点信息"); |
| | | } |
| | | if (!Cools.isEmpty(basStation.getContainerType())) { |
| | | List<Long> longs1 = basStation.getCrossZoneArea().stream() |
| | | List<Long> longs1 = basStation.getContainerType().stream() |
| | | .map(Integer::longValue) |
| | | .collect(Collectors.toList()); |
| | | List<BasContainer> containers = basContainerService.list( |