Commit 95c023647ca6360262be1bfb7058ba7663a50e85

Authored by litao@lymsh.com
1 parent 0d350d1013
Exists in master and in 1 other branch dev

改排序

Showing 1 changed file with 1 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java View file @ 95c0236
... ... @@ -818,7 +818,7 @@
818 818 if(startDate != null && endDate != null) {
819 819 c.and("bookbuildingDate").gte(startDate).lt(DateUtil.addDay(endDate, 1));
820 820 }
821   - List<Patients> patients = mongoTemplate.find(Query.query(c).with(new Sort(Sort.Direction.DESC, "created")), Patients.class);
  821 + List<Patients> patients = mongoTemplate.find(Query.query(c).with(new Sort(Sort.Direction.DESC, "bookbuildingDate")), Patients.class);
822 822 return patients;
823 823 }
824 824