Commit 0d4aef577de3293b70c24771b8083aee3cc78952
1 parent
641cb38efc
Exists in
master
and in
6 other branches
统计
Showing 1 changed file with 2 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
View file @
0d4aef5
... | ... | @@ -2731,7 +2731,8 @@ |
2731 | 2731 | BeanUtils.copy(patients, patientManagerQueryModel); |
2732 | 2732 | |
2733 | 2733 | patientManagerQueryModel.setTypeStr(patients.getType() == 1 ? "未分娩" : "已分娩"); |
2734 | - patientManagerQueryModel.setYyzyfmHospitalName(couponMapper.getHospitalName(patients.getYyzyfmHospitalId())); | |
2734 | + patientManagerQueryModel.setYyzyfmHospitalName( | |
2735 | + (patients.getYyzyfmHospitalId() != null && "-1".equals(patients.getYyzyfmHospitalId())) ? "其他" : couponMapper.getHospitalName(patients.getYyzyfmHospitalId())); | |
2735 | 2736 | patientManagerQueryModel.setAge(DateUtil.getAge(patients.getBirth())); |
2736 | 2737 | patientManagerQueryModel.setpId(patients.getPid()); |
2737 | 2738 | String dueWeek = ""; |