From b700027cc77e0c35d484b13124d50d2116150622 Mon Sep 17 00:00:00 2001 From: liquanyu Date: Wed, 4 Jul 2018 16:31:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=93=E9=87=8D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/service/impl/PatientWeightServiceImpl.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java index 03de2f6..97c2ca0 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java @@ -516,15 +516,15 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient criteria.and("patientId").in(ids); } - PageResult pageResult = findMongoPage(PatientWeight.class, new Query(criteria).with(new Sort(Sort.Direction.DESC, "created")), page, limit); + PageResult pageResult = findMongoPage(PatientWeight.class, new Query(criteria).with(new Sort(Sort.Direction.DESC, "modified")), page, limit); List patientWeights = (List) pageResult.getGrid(); - Collections.sort(patientWeights, new Comparator() { - @Override - public int compare(PatientWeight o1, PatientWeight o2) { - //升序 - return o1.getModified().compareTo(o2.getModified()); - } - }); +// Collections.sort(patientWeights, new Comparator() { +// @Override +// public int compare(PatientWeight o1, PatientWeight o2) { +// //升序 +// return o1.getModified().compareTo(o2.getModified()); +// } +// }); List> restMap = new ArrayList<>(); if(CollectionUtils.isNotEmpty(patientWeights)) { for (PatientWeight patientWeight : patientWeights) { -- 1.8.3.1