Parcourir la source

优化未知小区问题

java110 il y a 5 ans
Parent
commit
324b576854

+ 1 - 1
service-api/src/main/java/com/java110/api/listener/community/ListCommunitysListener.java

@@ -112,7 +112,7 @@ public class ListCommunitysListener extends AbstractServiceApiListener {
                 for (AreaDto tmpAreaDto : areaDtos) {
                     if (communityDataVo.getCityCode().equals(tmpAreaDto.getAreaCode())) {
                         communityDataVo.setCityName(tmpAreaDto.getProvName() + tmpAreaDto.getCityName() + tmpAreaDto.getAreaName());
-                        continue;
+                        break;
                     }
                     communityDataVo.setCityName("未知");
                 }