浏览代码

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

mycopy123@163.com 1 年之前
父节点
当前提交
14132f75ae
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/main/java/com/trs/ggzyexchange/service/impl/AreaPlatformServiceImpl.java

+ 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);