puzhibing
2026-03-11 44b70260e23bbdc7b4e4356be45f04ad46e25e68
xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/service/serviceimpl/XpElectronicFenceServiceImpl.java
@@ -320,13 +320,13 @@
            // 检查更新后的区域与现有运营区域是否有重叠
            for (XpElectronicFenceArea updatedArea : updatedElectronicFenceAreas) {
                //处理围栏闭合
                String[] split = updatedArea.getFencePoints().split(",");
                if(split[0].equals(split[split.length - 1])){
                    updatedArea.setFencePoints(updatedArea.getFencePoints() + "," + split[0]);
                }
                if (updatedArea.getAreaType() == 1) { // 只检查运营区域
                    for (XpElectronicFenceArea existingArea : existingOperationAreas) {
                        //处理围栏闭合
                        String[] split = existingArea.getFencePoints().split(",");
                        if(split[0].equals(split[split.length - 1])){
                            existingArea.setFencePoints(existingArea.getFencePoints() + "," + split[0]);
                        }
                        if (polygonOverlapService.checkPolygonOverlap(
                                updatedArea.getFencePoints(),
                                existingArea.getFencePoints())) {