Commit d7893b2245c6108c288184e5eef37cf48069a243
1 parent
e466910e91
Exists in
master
and in
6 other branches
逗号改括号
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java
View file @
d7893b2
... | ... | @@ -253,7 +253,7 @@ |
253 | 253 | for (BloodSugar bloodSugar : bloodSugarsWeek) { |
254 | 254 | if(weekAvgMapTemp.containsKey(bloodSugar.getBloodSugarType())) { |
255 | 255 | Map<String, Object> temp = weekAvgMapTemp.get(bloodSugar.getBloodSugarType()); |
256 | - temp.put("dayCount", Integer.parseInt(temp.get("count") + "") + 1); // 总共有记录的天数 | |
256 | + temp.put("dayCount", Integer.parseInt(temp.get("dayCount") + "") + 1); // 总共有记录的天数 | |
257 | 257 | temp.put("sugarCount", Double.parseDouble(temp.get("sugarCount") + "") + Double.parseDouble(bloodSugar.getBloodSugar())); // 总共所有记录的和 |
258 | 258 | weekAvgMapTemp.put(bloodSugar.getBloodSugarType(), temp); |
259 | 259 | } else { |
... | ... | @@ -290,7 +290,7 @@ |
290 | 290 | for (BloodSugar bloodSugar : bloodSugarsMonth) { |
291 | 291 | if(monthAvgTemp.containsKey(bloodSugar.getBloodSugarType())) { |
292 | 292 | Map<String, Object> temp = monthAvgTemp.get(bloodSugar.getBloodSugarType()); |
293 | - temp.put("dayCount", Integer.parseInt(temp.get("count") + "") + 1); // 总共有记录的天数 | |
293 | + temp.put("dayCount", Integer.parseInt(temp.get("dayCount") + "") + 1); // 总共有记录的天数 | |
294 | 294 | temp.put("sugarCount", Double.parseDouble(temp.get("sugarCount") + "") + Double.parseDouble(bloodSugar.getBloodSugar())); // 总共所有记录的和 |
295 | 295 | monthAvgTemp.put(bloodSugar.getBloodSugarType(), temp); |
296 | 296 | } else { |