From 6a9789197c42c65b8873110e87aff3779aa4abc9 Mon Sep 17 00:00:00 2001 From: litao Date: Mon, 10 Jul 2017 10:28:33 +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 | 3 ++- .../com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java | 2 +- 2 files changed, 3 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 ab5bb43..1f97e0a 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,7 +64,8 @@ public class PostReviewServiceImpl extends BaseServiceImpl implements IPostRevie for (Patients patient : patients) { ids.add(patient.getId()); } - query.addCriteria(Criteria.where("parentId").in(ids)); + query.addCriteria(Criteria.where("parentId").in(ids)) + .with(new Sort(Sort.Direction.DESC, "checkTime")); } PageResult pageResult = findMongoPage(PostReviewModel.class, query, page, limit); diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java index 4854c95..e7b99d2 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java @@ -1245,7 +1245,7 @@ public class ReportServiceImpl extends BaseServiceImpl implements IReportService } } tempMap.put(otherDate, other); - System.out.println(">>> " + tempMap); + System.out.println(">>> " + tempMap + " >>" + other); } } -- 1.8.3.1