Commit 85b8eef07db02b0387c4ef614212c11c0eb9cf4e
1 parent
67848b69ea
Exists in
master
and in
6 other branches
解决bug
Showing 2 changed files with 14 additions and 16 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java
View file @
85b8eef
| ... | ... | @@ -408,12 +408,14 @@ |
| 408 | 408 | * @param patients |
| 409 | 409 | */ |
| 410 | 410 | public void validata(Patients patients) { |
| 411 | - //修改产筛s | |
| 412 | - updateSieve(patients); | |
| 413 | - //修改转诊 | |
| 414 | - updateRefer(patients); | |
| 415 | - //修改产检管理信息 | |
| 416 | - updateExRecord(patients); | |
| 411 | + if(patients!=null){ | |
| 412 | + //修改产筛s | |
| 413 | + updateSieve(patients); | |
| 414 | + //修改转诊 | |
| 415 | + updateRefer(patients); | |
| 416 | + //修改产检管理信息 | |
| 417 | + updateExRecord(patients); | |
| 418 | + } | |
| 417 | 419 | } |
| 418 | 420 | |
| 419 | 421 | /** |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
85b8eef
| ... | ... | @@ -457,17 +457,13 @@ |
| 457 | 457 | //表示区域的 |
| 458 | 458 | if (StringUtils.isNotEmpty(groupsFacade.findByCurrentUserId(hospitalId))) { |
| 459 | 459 | String parentId = handHideBuild(excAddRequest.getPid(), excAddRequest.getParentId(), userId, 1); |
| 460 | - if (StringUtils.isEmpty(parentId)) { | |
| 461 | - //打印日志 | |
| 460 | + if (StringUtils.isNotEmpty(parentId)) { | |
| 461 | + antExChuModel.setParentId(parentId); | |
| 462 | + excAddRequest.setParentId(parentId); | |
| 463 | + Patients p = patientsService.findOnePatientById(parentId); | |
| 464 | + //加入产筛 | |
| 465 | + patientsService.validata(p); | |
| 462 | 466 | } |
| 463 | - antExChuModel.setParentId(parentId); | |
| 464 | - excAddRequest.setParentId(parentId); | |
| 465 | - | |
| 466 | - Patients p = patientsService.findOnePatientById(parentId); | |
| 467 | - | |
| 468 | - //加入产筛 | |
| 469 | - patientsService.validata(p); | |
| 470 | - | |
| 471 | 467 | } |
| 472 | 468 | antExChuModel.setOperator(userId); |
| 473 | 469 | antExChuModel.setHospitalId(hospitalId); |