Commit 11ebc6bebd3e6ec8c5e13524b5e6453a4eeec885

Authored by litao@lymsh.com
1 parent 927389db85

bbbbbb

Showing 1 changed file with 10 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java View file @ 11ebc6b
... ... @@ -344,7 +344,16 @@
344 344  
345 345 CollectionUtils.sortListByMapKeyWithDate(restList, "craeted");
346 346  
347   - return RespBuilder.buildSuccess("restList", restList, "count", bloodSugars.size(), "dayCount", dayCountSet.size(), "month", monthCountSet, "monthAvgMap", monthAvgMap, "weekAvgMap", weekAvgMap);
  347 + Set<String> monthCountSet2 = new HashSet<>();
  348 + for (String s : monthCountSet) {
  349 + if(s.length() == 1) {
  350 + monthCountSet2.add("0" + s);
  351 + } else {
  352 + monthCountSet2.add(s);
  353 + }
  354 + }
  355 +
  356 + return RespBuilder.buildSuccess("restList", restList, "count", bloodSugars.size(), "dayCount", dayCountSet.size(), "month", monthCountSet2, "monthAvgMap", monthAvgMap, "weekAvgMap", weekAvgMap);
348 357 }
349 358  
350 359 }