Commit 1f635b75cd4c0e7bc70ad83022fb37a95b9ae312
1 parent
b43f4960d8
Exists in
master
and in
6 other branches
bbbbbb
Showing 1 changed file with 5 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java
View file @
1f635b7
| ... | ... | @@ -351,8 +351,12 @@ |
| 351 | 351 | } |
| 352 | 352 | |
| 353 | 353 | CollectionUtils.sortListByMapKeyWithDate(restList, "craeted"); |
| 354 | + Set<String> monthCountSet3 = new HashSet<>(); | |
| 355 | + for (String s : monthCountSet2) { | |
| 356 | + monthCountSet3.add(s.split("年")[1].replace("月", "")); | |
| 357 | + } | |
| 354 | 358 | |
| 355 | - return RespBuilder.buildSuccess("restList", restList, "count", bloodSugars.size(), "dayCount", dayCountSet.size(), "month", monthCountSet2, "monthAvgMap", monthAvgMap, "weekAvgMap", weekAvgMap); | |
| 359 | + return RespBuilder.buildSuccess("restList", restList, "count", bloodSugars.size(), "dayCount", dayCountSet.size(), "month", monthCountSet3, "monthAvgMap", monthAvgMap, "weekAvgMap", weekAvgMap); | |
| 356 | 360 | } |
| 357 | 361 | |
| 358 | 362 | } |