Commit 64de37db09cd58040d969c10cc9c73bef2872e67
1 parent
40c6c8d4b9
Exists in
master
and in
1 other branch
update code
Showing 1 changed file with 2 additions and 1 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/SieveRecordService.java
View file @
64de37d
... | ... | @@ -6,6 +6,7 @@ |
6 | 6 | import com.lyms.platform.query.SieveRecordQuery; |
7 | 7 | import org.apache.commons.lang.StringUtils; |
8 | 8 | import org.springframework.beans.factory.annotation.Autowired; |
9 | +import org.springframework.data.domain.Sort; | |
9 | 10 | import org.springframework.stereotype.Service; |
10 | 11 | |
11 | 12 | import java.util.List; |
... | ... | @@ -27,7 +28,7 @@ |
27 | 28 | query.start(sieveRecordQuery.getOffset()).end(sieveRecordQuery.getLimit()); |
28 | 29 | } |
29 | 30 | |
30 | - return sieveRecordDao.query(query); | |
31 | + return sieveRecordDao.query(query.addOrder(Sort.Direction.DESC, "created")); | |
31 | 32 | } |
32 | 33 | |
33 | 34 | public void save(SieveRecordModel model) { |