瀏覽代碼

fix 处理常驻人口居住地址数据

tjf 3 年之前
父節點
當前提交
63db3a9706
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      boman-web-core/src/main/java/com/boman/web/core/controller/TestController.java

+ 2 - 2
boman-web-core/src/main/java/com/boman/web/core/controller/TestController.java

@@ -286,7 +286,7 @@ public class TestController {
      *
      * @return
      */
-    @PostMapping("/setCzrkTown")
+    //@PostMapping("/setCzrkTown")
     public AjaxResult setCzrkTown() {
         for (int i = 0; i < 46; i++) {
             int startPage = i * 10000;
@@ -454,7 +454,7 @@ public class TestController {
                         String nowIn = czrkJzdz.getNowIn();
                         if (StringUtils.isNotBlank(nowIn)) {
                             Map<String, String> stringStringMap = addressResolutionMap(nowIn);
-                            if (stringStringMap.size() > 0) {
+                            if (stringStringMap != null && stringStringMap.size() > 0) {
                                 //镇
                                 String town = stringStringMap.get("town");
                                 if (StringUtils.isNotBlank(town)) {