Commit 5df752e8ddb72368b708075115ff7881bc221ede

Authored by zhangchao
1 parent 2fdd5df11e
Exists in dev

#fix:优化产后模板查询排序查询

Showing 1 changed file with 2 additions and 0 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PostpartumReportService.java View file @ 5df752e
... ... @@ -13,6 +13,7 @@
13 13 import org.apache.commons.lang.StringUtils;
14 14 import org.apache.velocity.util.ArrayListWrapper;
15 15 import org.springframework.beans.factory.annotation.Autowired;
  16 +import org.springframework.data.domain.Sort;
16 17 import org.springframework.stereotype.Service;
17 18 import org.springframework.transaction.annotation.Transactional;
18 19  
... ... @@ -42,6 +43,7 @@
42 43  
43 44 public List<PostpartumReport> queryPatientList(PostpartumReportQuery postpartumReportQuery){
44 45 MongoQuery query = postpartumReportQuery.convertToQuery();
  46 + query.addOrder(Sort.Direction.ASC, "created");
45 47 List<PostpartumReport> results= postpartumReportDao.queryPatient(query);
46 48 return results;
47 49 }