From bbee558466231538037c4a708ec56a8b073cce84 Mon Sep 17 00:00:00 2001 From: litao Date: Mon, 10 Jul 2017 10:36:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lyms/platform/operate/web/service/impl/PostReviewServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PostReviewServiceImpl.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PostReviewServiceImpl.java index 1f97e0a..4c6d4b0 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PostReviewServiceImpl.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PostReviewServiceImpl.java @@ -64,9 +64,9 @@ public class PostReviewServiceImpl extends BaseServiceImpl implements IPostRevie for (Patients patient : patients) { ids.add(patient.getId()); } - query.addCriteria(Criteria.where("parentId").in(ids)) - .with(new Sort(Sort.Direction.DESC, "checkTime")); + query.addCriteria(Criteria.where("parentId").in(ids)); } + query.with(new Sort(Sort.Direction.DESC, "checkTime")); PageResult pageResult = findMongoPage(PostReviewModel.class, query, page, limit); List grid = (List) pageResult.getGrid(); -- 1.8.3.1