Commit ebb9dd8c47a5861f8ddbb014b28a3719c25febbd
1 parent
cffa6d524e
Exists in
master
and in
6 other branches
修改bug
Showing 1 changed file with 6 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java
View file @
ebb9dd8
... | ... | @@ -547,7 +547,12 @@ |
547 | 547 | flag = true; |
548 | 548 | } |
549 | 549 | AntenatalExaminationModel antenatalExaminationModels = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(patients.getPid())), AntenatalExaminationModel.class); |
550 | - riskName = getRisk(antenatalExaminationModels.getRiskFactor(), antenatalExaminationModels.getOtherRisk()); | |
550 | + if (null != antenatalExaminationModel && StringUtils.isNotEmpty(antenatalExaminationModels.getRiskFactor())) { | |
551 | + riskName = getRisk(antenatalExaminationModels.getRiskFactor(), antenatalExaminationModels.getOtherRisk()); | |
552 | + } else { | |
553 | + riskName = ""; | |
554 | + } | |
555 | + | |
551 | 556 | } |
552 | 557 | } else if (null != antenatalExaminationModel && state != 0) { //产检处打印全部的 |
553 | 558 | patients = patientsService.findOnePatientById(antenatalExaminationModel.getParentId()); |