Commit b700027cc77e0c35d484b13124d50d2116150622
1 parent
af449d6697
Exists in
master
and in
1 other branch
体重管理
Showing 1 changed file with 8 additions and 8 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
b700027
... | ... | @@ -516,15 +516,15 @@ |
516 | 516 | criteria.and("patientId").in(ids); |
517 | 517 | } |
518 | 518 | |
519 | - PageResult pageResult = findMongoPage(PatientWeight.class, new Query(criteria).with(new Sort(Sort.Direction.DESC, "created")), page, limit); | |
519 | + PageResult pageResult = findMongoPage(PatientWeight.class, new Query(criteria).with(new Sort(Sort.Direction.DESC, "modified")), page, limit); | |
520 | 520 | List<PatientWeight> patientWeights = (List<PatientWeight>) pageResult.getGrid(); |
521 | - Collections.sort(patientWeights, new Comparator<PatientWeight>() { | |
522 | - @Override | |
523 | - public int compare(PatientWeight o1, PatientWeight o2) { | |
524 | - //升序 | |
525 | - return o1.getModified().compareTo(o2.getModified()); | |
526 | - } | |
527 | - }); | |
521 | +// Collections.sort(patientWeights, new Comparator<PatientWeight>() { | |
522 | +// @Override | |
523 | +// public int compare(PatientWeight o1, PatientWeight o2) { | |
524 | +// //升序 | |
525 | +// return o1.getModified().compareTo(o2.getModified()); | |
526 | +// } | |
527 | +// }); | |
528 | 528 | List<Map<String, Object>> restMap = new ArrayList<>(); |
529 | 529 | if(CollectionUtils.isNotEmpty(patientWeights)) { |
530 | 530 | for (PatientWeight patientWeight : patientWeights) { |