Commit b625efbf1726124213a94d173dcbe523f826f104

Authored by liquanyu
1 parent 88cfafeddd

code update

Showing 1 changed file with 7 additions and 4 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java View file @ b625efb
... ... @@ -655,11 +655,14 @@
655 655 if (pat != null)
656 656 {
657 657 BookbuildingRecordResult result = new BookbuildingRecordResult();
658   - Organization org = organizationService.getOrganization(Integer.valueOf(pat.getHospitalId()));
659   - if (org != null)
  658 + if (StringUtils.isNotEmpty(pat.getHospitalId()))
660 659 {
661   - result.setBookbuildHospital(org.getName());
662   - result.setHospitalId(String.valueOf(org.getId()));
  660 + Organization org = organizationService.getOrganization(Integer.valueOf(pat.getHospitalId()));
  661 + if (org != null)
  662 + {
  663 + result.setBookbuildHospital(org.getName());
  664 + result.setHospitalId(String.valueOf(org.getId()));
  665 + }
663 666 }
664 667 result.setBookbuildDate(DateUtil.getyyyy_MM_dd(pat.getBookbuildingDate()));
665 668 result.setId(pat.getId());