Commit 627a6a41306ed2e104d8402b23d688b63b9a6800
1 parent
deb6172d5a
Exists in
master
and in
1 other branch
修改新电子病历
Showing 1 changed file with 3 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java
View file @
627a6a4
... | ... | @@ -32,6 +32,7 @@ |
32 | 32 | import org.apache.commons.lang.StringUtils; |
33 | 33 | import org.apache.commons.lang.math.NumberUtils; |
34 | 34 | import org.springframework.beans.factory.annotation.Autowired; |
35 | +import org.springframework.data.domain.Sort; | |
35 | 36 | import org.springframework.stereotype.Component; |
36 | 37 | |
37 | 38 | import java.util.*; |
... | ... | @@ -273,7 +274,7 @@ |
273 | 274 | antExQuery.setYn(YnEnums.YES.getId()); |
274 | 275 | antExQuery.setHospitalId(hospital); |
275 | 276 | |
276 | - List<PostReviewModel> list = postReviewService.findWithList(antExQuery.convertToQuery()); | |
277 | + List<PostReviewModel> list = postReviewService.findWithList(antExQuery.convertToQuery().addOrder(Sort.Direction.DESC,"checkTime")); | |
277 | 278 | //TODO 需要根据时间去查询是否是本院最后一条记录 |
278 | 279 | if (CollectionUtils.isNotEmpty(list)) { |
279 | 280 | antExQuery.setStart(new Date(list.get(0).getCheckTime().getTime() + 40000)); |
... | ... | @@ -290,7 +291,7 @@ |
290 | 291 | } |
291 | 292 | } |
292 | 293 | |
293 | - if(CollectionUtils.isNotEmpty(list)){ | |
294 | + if(CollectionUtils.isEmpty(list)){ | |
294 | 295 | PostReviewModel postReviewModel=new PostReviewModel(); |
295 | 296 | postReviewModel.setYn(YnEnums.NO.getId()); |
296 | 297 | postReviewModel.setId(id); |