Commit 828b2c6568ab9f394c4ccba26fc8170f4df31fb5
1 parent
5fd83d86a8
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 11 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java
View file @
828b2c6
... | ... | @@ -840,10 +840,18 @@ |
840 | 840 | String fmHospital = ""; |
841 | 841 | |
842 | 842 | if (StringUtils.isNotEmpty(data.getFmHospital())){ |
843 | - Organization organization = organizationService.getOrganization(Integer.parseInt(data.getFmHospital())); | |
844 | - if (organization!=null && organization.getYn()==YnEnums.YES.getId()){ | |
845 | - fmHospital = organization.getName(); | |
843 | + if (com.lyms.platform.common.utils.StringUtils.isNum(data.getFmHospital())) | |
844 | + { | |
845 | + Organization organization = organizationService.getOrganization(Integer.parseInt(data.getFmHospital())); | |
846 | + if (organization!=null && organization.getYn()==YnEnums.YES.getId()){ | |
847 | + fmHospital = organization.getName(); | |
848 | + } | |
846 | 849 | } |
850 | + else | |
851 | + { | |
852 | + fmHospital = data.getFmHospital(); | |
853 | + } | |
854 | + | |
847 | 855 | } |
848 | 856 | |
849 | 857 | map.put("fmHospital", fmHospital); |