diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java index 3c47551..8381e0c 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java @@ -144,10 +144,10 @@ public class PostReviewFacade { //取所有医院的建档数据 优先取本院 ,然后取外院 Patients patientsList = examinationFacade.findOnePatient(postReviewQueryRequest.getCardNo(), postReviewQueryRequest.getVcCardNo(), null, hospitalId, 3,true,null); PostReviewListResult postReviewListResult = new PostReviewListResult(); - if(null!=patients.getDueStatus() && 1 == patients.getDueStatus()){ - return new BaseResponse().setErrorcode(ErrorCodeConstants.BUSINESS_ERROR).setErrormsg("您已终止妊娠不能进行复查"); - } if (null != patientsList) { + if(null!=patientsList.getDueStatus() && 1 == patientsList.getDueStatus()){ + return new BaseResponse().setErrorcode(ErrorCodeConstants.BUSINESS_ERROR).setErrormsg("您已终止妊娠不能进行复查"); + } PostReviewQuery postReviewQuery = new PostReviewQuery(); postReviewQuery.setPid(patientsList.getPid()); postReviewQuery.setYn(YnEnums.YES.getId());