Commit 6a9789197c42c65b8873110e87aff3779aa4abc9
1 parent
277214aefa
Exists in
master
and in
6 other branches
增加排序
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