Commit dfc441f6ad627cf8d101ee41da18c12a6a9f8b65
1 parent
55f1d83911
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 6 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
dfc441f
... | ... | @@ -5497,6 +5497,11 @@ |
5497 | 5497 | if (StringUtils.isNotEmpty(antExManagerQueryRequest.getQueryNo())) { |
5498 | 5498 | patientsQuery.setQueryNo(antExManagerQueryRequest.getQueryNo()); |
5499 | 5499 | patientses = patientsService.queryPatient1(patientsQuery, "created"); |
5500 | + if (!CollectionUtils.isNotEmpty(patientses)) | |
5501 | + { | |
5502 | + return new BaseListResponse().setData(riskList). | |
5503 | + setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setPageInfo(baseQuery.getPageInfo()); | |
5504 | + } | |
5500 | 5505 | } |
5501 | 5506 | |
5502 | 5507 | List<String> patientIds = new ArrayList<>(); |
... | ... | @@ -5507,10 +5512,7 @@ |
5507 | 5512 | patientIds.add(pat.getId()); |
5508 | 5513 | } |
5509 | 5514 | } |
5510 | - else | |
5511 | - { | |
5512 | - return new BaseListResponse().setData(riskList).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setPageInfo(baseQuery.getPageInfo()); | |
5513 | - } | |
5515 | + | |
5514 | 5516 | |
5515 | 5517 | Query query = new Query(); |
5516 | 5518 | if (CollectionUtils.isNotEmpty(patientIds)) { |