Commit aa577283a9c0f891470686f01e148507521fde74

Authored by yangfei
1 parent f634674aa5

最新血糖值

Showing 1 changed file with 1 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java View file @ aa57728
... ... @@ -261,7 +261,7 @@
261 261 @Override
262 262 public BaseResponse wxInfo(String parentId, Integer type) {
263 263 List<Map<String, Object>> restList = new ArrayList<>();
264   - List<BloodSugar> bloodSugars = mongoTemplate.find(Query.query(Criteria.where("pid").is(parentId)).with(new Sort(Sort.Direction.DESC, "created")), BloodSugar.class);
  264 + List<BloodSugar> bloodSugars = mongoTemplate.find(Query.query(Criteria.where("pid").is(parentId)).with(new Sort(Sort.Direction.DESC, "modified")), BloodSugar.class);
265 265 Set<String> dayCountSet = new HashSet<>();
266 266 Set<String> monthCountSet = new HashSet<>();
267 267 Set<String> monthCountSet2 = new TreeSet<>(new Comparator<String>() {