Parcourir la source

满洲里和二连自然资源和国有产权同步有问题

mycopy123@163.com il y a 1 an
Parent
commit
14132f75ae

+ 6 - 3
src/main/java/com/trs/ggzyexchange/service/impl/AreaPlatformServiceImpl.java

@@ -31,14 +31,17 @@ public class AreaPlatformServiceImpl extends ServiceImpl<AreaPlatformMapper, Are
         if(!ObjectUtils.isEmpty(regionCode)){
             String substring = null;
             boolean bstartsWith = regionCode.startsWith("152501");
+            boolean bstartsWithMZL = regionCode.startsWith("150781");
             if(bstartsWith){
                 substring = regionCode.substring(0,6);
-            }else {
+            }else if(bstartsWithMZL){
+                substring = regionCode.substring(0,6);
+            }else if(regionCode.length() > 4) {
                 substring = regionCode.substring(0, 4);
             }
-            if(regionCode.length() > 4){
+/*            if(regionCode.length() > 4){
                 substring = regionCode.substring(0, 4);
-            }
+            }*/
             if(!ObjectUtils.isEmpty(substring)){
                 QueryWrapper<AreaPlatform> areaPlatformQueryWrapper = new QueryWrapper<AreaPlatform>();
                 areaPlatformQueryWrapper.likeRight("area_code",substring);