From e032ce14c50d1d7ff769485d83b945754e356674 Mon Sep 17 00:00:00 2001
From: yyy <1083599556@qq.com>
Date: 星期三, 22 四月 2026 10:59:20 +0800
Subject: [PATCH] 1.修改场站问题 2.给接口添加查询条件
---
xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/service/serviceimpl/XpStationServiceImpl.java | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/service/serviceimpl/XpStationServiceImpl.java b/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/service/serviceimpl/XpStationServiceImpl.java
index 898e115..30c0483 100644
--- a/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/service/serviceimpl/XpStationServiceImpl.java
+++ b/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/service/serviceimpl/XpStationServiceImpl.java
@@ -26,6 +26,7 @@
import org.apache.shardingsphere.transaction.annotation.ShardingSphereTransactionType;
import org.apache.shardingsphere.transaction.core.TransactionType;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Lazy;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.geo.GeoJsonPolygon;
import org.springframework.data.mongodb.core.query.Criteria;
@@ -65,6 +66,7 @@
private GDMapGeocodingUtil gdMapGeocodingUtil;
@Autowired
private XpRegionMapper xpRegionMapper;
+ @Lazy
@Resource
private XpPointService xpPointService;
@@ -167,6 +169,7 @@
* @param outerFencePoints 外部围栏点位字符串(参考围栏),格式为 "lng1_lat1,lng2_lat2,..."
* @return 是否在内 true在内 false不在
*/
+ @Override
public boolean isPolygonInPolygon(String innerFencePoints, String outerFencePoints) {
if (innerFencePoints == null || innerFencePoints.trim().isEmpty()
|| outerFencePoints == null || outerFencePoints.trim().isEmpty()) {
--
Gitblit v1.7.1