/house/rent 优化

This commit is contained in:
majintao
2024-12-20 13:34:55 +08:00
parent 2d626b5930
commit 74a3d8e39b
2 changed files with 7 additions and 0 deletions
@@ -2011,6 +2011,9 @@ public class DistrictServiceImpl implements DistrictService {
if (!RegionData.isCity(city)) {
city = RegionData.formatCity(city);
}
if (city == null){
return null;
}
District districtInfo = findDistrict(new DistrictKey(city, region, name), target);
// 先精确查询,查不到再根据别名匹配
if (districtInfo != null) {