Commit 6a9789197c42c65b8873110e87aff3779aa4abc9

Authored by litao
1 parent 277214aefa

增加排序

Showing 2 changed files with 3 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PostReviewServiceImpl.java View file @ 6a97891
... ... @@ -64,7 +64,8 @@
64 64 for (Patients patient : patients) {
65 65 ids.add(patient.getId());
66 66 }
67   - query.addCriteria(Criteria.where("parentId").in(ids));
  67 + query.addCriteria(Criteria.where("parentId").in(ids))
  68 + .with(new Sort(Sort.Direction.DESC, "checkTime"));
68 69 }
69 70  
70 71 PageResult pageResult = findMongoPage(PostReviewModel.class, query, page, limit);
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java View file @ 6a97891
... ... @@ -1245,7 +1245,7 @@
1245 1245 }
1246 1246 }
1247 1247 tempMap.put(otherDate, other);
1248   - System.out.println(">>> " + tempMap);
  1248 + System.out.println(">>> " + tempMap + " >>" + other);
1249 1249 }
1250 1250 }
1251 1251