| | |
| | | if (Cools.isEmpty(basStation)) { |
| | | throw new CoolException("未找到站点信息"); |
| | | } |
| | | if (!basStation.getUseStatus().equals("O")) { |
| | | if (!basStation.getUseStatus().equals("O") && !basStation.getUseStatus().equals("D") && !basStation.getUseStatus().equals("F")) { |
| | | throw new CoolException("站点状态不为空闲"); |
| | | } |
| | | if (!Cools.isEmpty(basStation.getContainerType())) { |
| | |
| | | if (Cools.isEmpty(param.getTransferStationNo())) { |
| | | return R.error("无参数"); |
| | | } |
| | | BasStation basStation = basStationService.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationId, param.getTransferStationNo())); |
| | | BasStation basStation = basStationService.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationName, param.getTransferStationNo())); |
| | | if (Cools.isEmpty(basStation)) { |
| | | return R.error("未找到匹配站点"); |
| | | } |