diff --git a/stwzhj-modules/stwzhj-location/src/main/java/org/dromara/location/service/impl/CorrectGeoQueryService.java b/stwzhj-modules/stwzhj-location/src/main/java/org/dromara/location/service/impl/CorrectGeoQueryService.java index 0976b3da..6a1b24e2 100644 --- a/stwzhj-modules/stwzhj-location/src/main/java/org/dromara/location/service/impl/CorrectGeoQueryService.java +++ b/stwzhj-modules/stwzhj-location/src/main/java/org/dromara/location/service/impl/CorrectGeoQueryService.java @@ -105,7 +105,7 @@ public class CorrectGeoQueryService { // 4. 构建几何对象 try { - return QueryBuilders.geoShapeQuery("location_shape", polygonBuilder.buildGeometry()) + return QueryBuilders.geoShapeQuery("location", polygonBuilder.buildGeometry()) .relation(ShapeRelation.INTERSECTS); } catch (IOException e) { throw new RuntimeException(e);