Commit bdd5f334fcbcb323275aa93309c82d01528d8e73
1 parent
c4601c0774
Exists in
master
and in
1 other branch
update code
Showing 1 changed file with 10 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java
View file @
bdd5f33
... | ... | @@ -1513,10 +1513,17 @@ |
1513 | 1513 | result.setFatherProfessionType(getBasicConfig(model.getFproTypeId())); |
1514 | 1514 | if (StringUtils.isNotEmpty(model.getDeliverOrg())) |
1515 | 1515 | { |
1516 | - Organization organization = organizationService.getOrganization(Integer.parseInt(model.getDeliverOrg())); | |
1517 | - if (organization!=null && organization.getYn()==YnEnums.YES.getId()){ | |
1518 | - result.setDeliverOrg(organization.getName()); | |
1516 | + try { | |
1517 | + Organization organization = organizationService.getOrganization(Integer.parseInt(model.getDeliverOrg())); | |
1518 | + if (organization!=null && organization.getYn()==YnEnums.YES.getId()){ | |
1519 | + result.setDeliverOrg(organization.getName()); | |
1520 | + } | |
1519 | 1521 | } |
1522 | + catch (Exception e) | |
1523 | + { | |
1524 | + result.setDeliverOrg(model.getDeliverOrg()); | |
1525 | + } | |
1526 | + | |
1520 | 1527 | } |
1521 | 1528 | |
1522 | 1529 | //母亲是否高危 |