From ee0737924fd917e47ec5468a7f8db5d77791793d Mon Sep 17 00:00:00 2001
From: lizijie <lzjiiie@163.com>
Date: Fri, 11 Sep 2020 17:35:50 +0800
Subject: [PATCH] 删除打印

---
 src/main/java/com/moral/service/impl/RealWeatherServiceImpl.java |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/moral/service/impl/RealWeatherServiceImpl.java b/src/main/java/com/moral/service/impl/RealWeatherServiceImpl.java
index f1f07f7..8615506 100644
--- a/src/main/java/com/moral/service/impl/RealWeatherServiceImpl.java
+++ b/src/main/java/com/moral/service/impl/RealWeatherServiceImpl.java
@@ -93,6 +93,13 @@
             hashMap.put("cityCode", code);
             hashSet.add(hashMap);
         }
+
+        Map<String,Object> kunShanMap=new HashMap<>();
+        kunShanMap.put("name1","���������");
+        kunShanMap.put("parentName","���������");
+        kunShanMap.put("cityCode",320500);
+        hashSet.add(kunShanMap);
+
         List<Element> elements = Dom4jUtils.readDocument();
         String cityID = "101190404";
         for (Map<String, Object> map : hashSet) {
@@ -145,7 +152,7 @@
                 jsonMap.put("condition","80");
             }else if(text.equals("���")){
                 jsonMap.put("condition","60");
-            }else if(text.equals("���������")){
+            }else if(text.equals("���������")||text.equals("������")){
                 jsonMap.put("condition","40");
             }else if(text.equals("������")){
                 jsonMap.put("condition","20");
@@ -155,6 +162,6 @@
             resultMap.put("json",JSONObject.toJSONString(jsonMap));
             resultList.add(resultMap);
         }
-        return realWeatherMapper.insertRealWeather(null);
+        return realWeatherMapper.insertRealWeather(resultList);
     }
 }

--
Gitblit v1.8.0