Commit 003835154b54de17b2ac40c9dfcb2a70435068c5
1 parent
69a0d306ed
Exists in
master
and in
1 other branch
commit
Showing 1 changed file with 8 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
View file @
0038351
... | ... | @@ -601,8 +601,14 @@ |
601 | 601 | referralApplyOrderQuery.setNeed("1"); |
602 | 602 | |
603 | 603 | String hospital = autoMatchFacade.getHospitalId(userId); |
604 | - referralApplyOrderQuery.setHospitalId(hospital); | |
605 | - referralApplyOrderQuery.setHospitalName(organizationService.getOrganization(Integer.valueOf(hospital)).getName()); | |
604 | + if(StringUtils.isNotEmpty(hospital)){ | |
605 | + referralApplyOrderQuery.setHospitalId(hospital); | |
606 | + Organization og= organizationService.getOrganization(Integer.valueOf(hospital)); | |
607 | + if(null!=og){ | |
608 | + referralApplyOrderQuery.setHospitalName(og.getName()); | |
609 | + } | |
610 | + } | |
611 | + | |
606 | 612 | //1 转入 0转出 |
607 | 613 | if ("1".equals(applyOrderQueryRequest.getAction())) { |
608 | 614 | if (StringUtils.isNotEmpty(applyOrderQueryRequest.getTransferredHospital())) { |