Commit c850b5e0aef619e81f5086d4bc44ee142abce4ea
1 parent
ab6e1dc401
Exists in
master
and in
6 other branches
分娩管理查询修改
Showing 1 changed file with 9 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/QuanChanPatientWorker.java
View file @
c850b5e
... | ... | @@ -97,7 +97,15 @@ |
97 | 97 | chanResult.setRegisterAddr(CommonsHelper.getResidence(patients.getProvinceId(), patients.getCityId(), patients.getAreaId(), patients.getStreetId(), patients.getAddress(), basicConfigService)); |
98 | 98 | chanResult.setAddr(CommonsHelper.getResidence(patients.getProvinceRegisterId(), patients.getCityRegisterId(), patients.getAreaRegisterId(), patients.getStreetRegisterId(), patients.getAddressRegister(), basicConfigService)); |
99 | 99 | try { |
100 | - chanResult.setFirstBH(organizationService.getOrganization(Integer.valueOf(patients.getHospitalId())).getName()); | |
100 | + if (StringUtils.isNotEmpty(patients.getSource())) | |
101 | + { | |
102 | + Patients pat = patientsService.findOnePatientById(patients.getSource()); | |
103 | + chanResult.setFirstBH(organizationService.getOrganization(Integer.valueOf(pat.getHospitalId())).getName()); | |
104 | + } | |
105 | + else | |
106 | + { | |
107 | + chanResult.setFirstBH(organizationService.getOrganization(Integer.valueOf(patients.getHospitalId())).getName()); | |
108 | + } | |
101 | 109 | } catch (Exception e) { |
102 | 110 | chanResult.setFirstBH(""); |
103 | 111 | } |