Commit a57775b368afad1619c80d62f40961a4f6d64373
1 parent
dbf9e63407
Exists in
master
and in
8 other branches
platform permission
查询按时间倒序
Showing 2 changed files with 4 additions and 2 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AssayConfigService.java
View file @
a57775b
... | ... | @@ -5,6 +5,7 @@ |
5 | 5 | |
6 | 6 | import com.lyms.platform.biz.param.AssayConfigQuery; |
7 | 7 | import org.springframework.beans.factory.annotation.Autowired; |
8 | +import org.springframework.data.domain.Sort; | |
8 | 9 | import org.springframework.stereotype.Service; |
9 | 10 | |
10 | 11 | import com.lyms.platform.biz.dal.AssayConfigDao; |
... | ... | @@ -45,7 +46,7 @@ |
45 | 46 | mongoQuery.start(assayConfigRequest.getOffset()).end(assayConfigRequest.getLimit()); |
46 | 47 | } |
47 | 48 | |
48 | - return assayConfigDao.query(mongoQuery); | |
49 | + return assayConfigDao.query(mongoQuery.addOrder(Sort.Direction.DESC, "modifiedDate")); | |
49 | 50 | } |
50 | 51 | |
51 | 52 |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/CommunityConfigService.java
View file @
a57775b
... | ... | @@ -8,6 +8,7 @@ |
8 | 8 | import com.lyms.platform.common.enums.YnEnums; |
9 | 9 | import com.lyms.platform.pojo.CommunityConfig; |
10 | 10 | import org.springframework.beans.factory.annotation.Autowired; |
11 | +import org.springframework.data.domain.Sort; | |
11 | 12 | import org.springframework.stereotype.Service; |
12 | 13 | |
13 | 14 | import javax.swing.plaf.synth.Region; |
... | ... | @@ -56,7 +57,7 @@ |
56 | 57 | mongoQuery.start(communityQuery.getOffset()).end(communityQuery.getLimit()); |
57 | 58 | } |
58 | 59 | |
59 | - return communityConfigDao.queryArea(mongoQuery); | |
60 | + return communityConfigDao.queryArea(mongoQuery.addOrder(Sort.Direction.DESC, "modifiedDate")); | |
60 | 61 | } |
61 | 62 | |
62 | 63 |