| | |
| | | .eq(BasStation::getStationName, site).last("limit 1")); |
| | | if (!Cools.isEmpty(basStation)){ |
| | | BasStationTypeService basStationTypeService = SpringUtils.getBean(BasStationTypeService.class); |
| | | BasStationType one = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getContainerType()).last("limit 1")); |
| | | BasStationType one = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getStationTypeCode()).last("limit 1")); |
| | | if (!Cools.isEmpty(one)) { |
| | | if (one.getTaskType().contains(type)){ |
| | | if (one.getTaskType().contains("all") || one.getTaskType().contains(type)){ |
| | | outboundSite.add(site); |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | BasStationTypeService basStationTypeService = SpringUtils.getBean(BasStationTypeService.class); |
| | | BasStationType one = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getContainerType()).last("limit 1")); |
| | | if (!Cools.isEmpty(one)) { |
| | | if (one.getTaskType().contains(type)){ |
| | | BasStationType stationType = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getStationTypeCode()).last("limit 1")); |
| | | if (!Cools.isEmpty(stationType)) { |
| | | if (stationType.getTaskType().contains("all")){ |
| | | return true; |
| | | } |
| | | if (!Cools.isEmpty(stationType.getTaskType()) && stationType.getTaskType().contains(type)) { |
| | | return true; |
| | | } |
| | | log.error("目标站点:" + targetCode+" 不支持作业此任务类型:"+type); |
| | | } |
| | | log.error("目标站点:" + targetCode+" 不支持作业此任务类型:"+type); |
| | | log.error("目标站点:" + targetCode+" 未匹配到站点类型"); |
| | | } |
| | | log.error("queryPathIsItAvailableInArea: error"); |
| | | log.error("queryPathIsItAvailableOutArea: error"); |
| | | } |
| | | return false; |
| | | } |
| | |
| | | } |
| | | } |
| | | BasStationTypeService basStationTypeService = SpringUtils.getBean(BasStationTypeService.class); |
| | | BasStationType one = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getContainerType()).last("limit 1")); |
| | | if (!Cools.isEmpty(one)) { |
| | | if (one.getTaskType().contains(type)){ |
| | | BasStationType stationType = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getStationTypeCode()).last("limit 1")); |
| | | if (!Cools.isEmpty(stationType)) { |
| | | if (stationType.getTaskType().contains("all")){ |
| | | return true; |
| | | } |
| | | if (!Cools.isEmpty(stationType.getTaskType()) && stationType.getTaskType().contains(type)) { |
| | | return true; |
| | | } |
| | | log.error("当前站点:" + sourceCode+" 不支持作业此任务类型:"+type); |
| | | } |
| | | log.error("当前站点:" + sourceCode+" 不支持作业此任务类型:"+type); |
| | | log.error("当前站点:" + sourceCode+" 未匹配到站点类型"); |
| | | } |
| | | log.error("queryPathIsItAvailableInArea: error"); |
| | | } |