Commit bbee558466231538037c4a708ec56a8b073cce84
1 parent
6a9789197c
Exists in
master
and in
6 other branches
增加排序
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PostReviewServiceImpl.java
View file @
bbee558
| ... | ... | @@ -64,9 +64,9 @@ |
| 64 | 64 | for (Patients patient : patients) { |
| 65 | 65 | ids.add(patient.getId()); |
| 66 | 66 | } |
| 67 | - query.addCriteria(Criteria.where("parentId").in(ids)) | |
| 68 | - .with(new Sort(Sort.Direction.DESC, "checkTime")); | |
| 67 | + query.addCriteria(Criteria.where("parentId").in(ids)); | |
| 69 | 68 | } |
| 69 | + query.with(new Sort(Sort.Direction.DESC, "checkTime")); | |
| 70 | 70 | |
| 71 | 71 | PageResult pageResult = findMongoPage(PostReviewModel.class, query, page, limit); |
| 72 | 72 | List<PostReviewModel> grid = (List<PostReviewModel>) pageResult.getGrid(); |