Commit 48b4132979efb94a694b494ffe33700b730e69c3

Authored by jiangjiazhi
1 parent 136739a0ee

a

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 @ 48b4132
... ... @@ -228,13 +228,13 @@
228 228 List<Map<String, Object>> restList = new ArrayList<>();
229 229 List<BloodSugar> bloodSugars = mongoTemplate.find(Query.query(Criteria.where("parentId").is(parentId).and("bloodSugarType").is(type)).with(new Sort(Sort.Direction.DESC, "created")), BloodSugar.class);
230 230 Set<String> dayCountSet = new HashSet<>();
231   - Set<Integer> monthCountSet = new HashSet<>();
  231 + Set<String> monthCountSet = new HashSet<>();
232 232 for (BloodSugar bloodSugar : bloodSugars) {
233 233 if(bloodSugar.getBloodSugarType() == type) {
234 234 Map<String, Object> temp = new HashMap<>();
235 235 temp.put("bloodSugar", bloodSugar.getBloodSugar());
236 236 temp.put("craeted", DateUtil.getyyyy_MM_dd_hms(bloodSugar.getCreated()));
237   - monthCountSet.add(DateUtil.getMonth(bloodSugar.getCreated()));
  237 + monthCountSet.add(DateUtil.getMonth(bloodSugar.getCreated())+"");
238 238 temp.put("type", bloodSugar.getBloodSugarType());
239 239 restList.add(temp);
240 240