Commit d3593f1f4d02b012a4c2a296173cd3a9d80ddb2d

Authored by litao
1 parent 69a508a4d1

bugxiufu

Showing 1 changed file with 1 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MongoUtil.java View file @ d3593f1
... ... @@ -107,7 +107,7 @@
107 107 boolean flag = true;
108 108 for (Map<String,Object> data : rest) {
109 109 if(areaId.equals(data.get("area_id"))) { /** 合并相同省市区月份数据 */
110   - data.put(month, map.getValue());
  110 + data.put(month, data.get(month) == null ? map.getValue() : (Integer) data.get(month) + map.getValue());
111 111 flag = false;
112 112 continue;
113 113 }