From 13978ae9ed56ec816823c74589e4c6745f184dff Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期三, 25 二月 2026 17:18:23 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/Robotaxi

---
 xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpOpenCityServiceImpl.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpOpenCityServiceImpl.java b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpOpenCityServiceImpl.java
index 1ceef23..fd8b144 100644
--- a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpOpenCityServiceImpl.java
+++ b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpOpenCityServiceImpl.java
@@ -142,4 +142,18 @@
     public void upDown(Long id, Integer status) {
         lambdaUpdate().eq(XpOpenCity::getId, id).set(XpOpenCity::getStatus, status).update();
     }
+
+    @Override
+    public String getNameWithCityName(Integer cityId) {
+        String cityName = "";
+        XpOpenCity openCity = getById(cityId);
+        if (Objects.nonNull(openCity)) {
+            if (StringUtils.isNotBlank(openCity.getDistrictCode())) {
+                cityName = openCity.getCityName() + ">" + openCity.getDistrictName();
+            } else {
+                cityName = openCity.getCityName();
+            }
+        }
+        return cityName;
+    }
 }

--
Gitblit v1.7.1