|
@@ -42,8 +42,7 @@ public class GeoController implements ReactiveTreeServiceQueryController<GeoReg
|
|
|
@QueryAction
|
|
@QueryAction
|
|
|
@QueryOperation(summary = "使用GET动态查询并返回树形结构以及geo集合信息")
|
|
@QueryOperation(summary = "使用GET动态查询并返回树形结构以及geo集合信息")
|
|
|
public Mono<?> findAllTreeTp2(@Parameter(hidden = true) QueryParamEntity paramEntity) {
|
|
public Mono<?> findAllTreeTp2(@Parameter(hidden = true) QueryParamEntity paramEntity) {
|
|
|
- return this.findAllChildren(paramEntity)
|
|
|
|
|
- .collectList()
|
|
|
|
|
|
|
+ return this.findAllChildrenTree(paramEntity)
|
|
|
.map(result-> Tuple.of(result, GeoJson.of(result.stream().map(GeoRegionEntity::getRegion)
|
|
.map(result-> Tuple.of(result, GeoJson.of(result.stream().map(GeoRegionEntity::getRegion)
|
|
|
.filter(Objects::nonNull).collect(Collectors.toList()), "FeatureCollection")));
|
|
.filter(Objects::nonNull).collect(Collectors.toList()), "FeatureCollection")));
|
|
|
}
|
|
}
|