Commit cd19afcdc025e05da10b6cf6855ecdec2a539616
1 parent
3487798848
Exists in
master
and in
1 other branch
增加设置parentid
Showing 1 changed file with 8 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
View file @
cd19afc
| ... | ... | @@ -277,10 +277,17 @@ |
| 277 | 277 | hospital = list1.get(0) + ""; |
| 278 | 278 | } |
| 279 | 279 | //获取 |
| 280 | - Patients patients = antenatalExaminationFacade.findOnePatient(deliverQueryRequest.getCardNo(), deliverQueryRequest.getVcCardNo(), null, hospital, -1); | |
| 280 | + /* Patients patients = antenatalExaminationFacade.findOnePatient(deliverQueryRequest.getCardNo(), deliverQueryRequest.getVcCardNo(), null, hospital, -1); | |
| 281 | 281 | if (null == patients) { |
| 282 | 282 | return new BaseResponse().setErrormsg("没有相关的产妇记录").setErrorcode(ErrorCodeConstants.BUSINESS_ERROR); |
| 283 | + }*/ | |
| 284 | + //http://jira.healthbaby.com.cn/browse/WEB-204 修改bug | |
| 285 | + Patients patients = antenatalExaminationFacade.findOnePatient(deliverQueryRequest.getCardNo(), deliverQueryRequest.getVcCardNo(), null, hospital, 1); | |
| 286 | + if(null==patients){ | |
| 287 | + return new BaseResponse().setErrormsg("该孕妇还未在本院建档不能进行产分娩").setErrorcode(ErrorCodeConstants.DEPT_NOT_EXISTS); | |
| 283 | 288 | } |
| 289 | + | |
| 290 | + | |
| 284 | 291 | MatDeliverQuery matDeliverQuery = new MatDeliverQuery(); |
| 285 | 292 | matDeliverQuery.setPid(patients.getPid()); |
| 286 | 293 | matDeliverQuery.setYn(YnEnums.YES.getId()); |