Commit 35c303ed3cb551aa76bdf4df479e515b6d9a6715
1 parent
e75eff5e48
Exists in
master
and in
6 other branches
1111
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 @
35c303e
... | ... | @@ -261,7 +261,7 @@ |
261 | 261 | } else { |
262 | 262 | Map<String, Object> temp = new HashMap<>(); |
263 | 263 | temp.put("dayCount", 1); // 总共有记录的天数 |
264 | - temp.put("sugarCount", bloodSugar.getBloodSugar()); // 总共所有记录的和 | |
264 | + temp.put("sugarCount", Double.parseDouble(bloodSugar.getBloodSugar())); // 总共所有记录的和 | |
265 | 265 | weekAvgMapTemp.put(bloodSugar.getBloodSugarType(), temp); |
266 | 266 | } |
267 | 267 | } |
... | ... | @@ -290,7 +290,7 @@ |
290 | 290 | } else { |
291 | 291 | Map<String, Object> temp = new HashMap<>(); |
292 | 292 | temp.put("dayCount", 1); // 总共有记录的天数 |
293 | - temp.put("sugarCount", bloodSugar.getBloodSugar()); // 总共所有记录的和 | |
293 | + temp.put("sugarCount", Double.parseDouble(bloodSugar.getBloodSugar())); // 总共所有记录的和 | |
294 | 294 | monthAvgTemp.put(bloodSugar.getBloodSugarType(), temp); |
295 | 295 | } |
296 | 296 | } |