Commit 3fe0ec11a3933afb74c7f8ab2c013af5d8c4c1fd

Authored by gengxiaokai
1 parent d7a9a2ed65

秦皇岛基本公卫

Showing 1 changed file with 5 additions and 4 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdJbgwInterface.java View file @ 3fe0ec1
... ... @@ -1222,18 +1222,19 @@
1222 1222 map.put("FOLLOWUPCLASSIFYVALUE",null);
1223 1223 map.put("FOLLOWUPDOCTORID",data.getProdDoctor());
1224 1224 String checkDoctor = "";
1225   -
  1225 + String hospitalId = "";
1226 1226 if (org.apache.commons.lang.StringUtils.isNotEmpty(data.getProdDoctor())) {
1227 1227 Users users = usersService.getUsers(Integer.parseInt(data.getProdDoctor()));
1228 1228 if (users != null && users.getYn() == YnEnums.YES.getId()) {
1229 1229 checkDoctor = users.getName();
  1230 + hospitalId = String.valueOf(users.getOrgId());
1230 1231 }
1231 1232 }
1232 1233 map.put("FOLLOWUPDOCTORNAME",checkDoctor);
1233   - map.put("ORGCODE",patients.getHospitalId());
  1234 + map.put("ORGCODE",hospitalId);
1234 1235 String hospital = "";
1235   - if (org.apache.commons.lang.StringUtils.isNotEmpty(data.getHospitalId())) {
1236   - Organization organization = organizationService.getOrganization(Integer.parseInt(data.getHospitalId()));
  1236 + if (org.apache.commons.lang.StringUtils.isNotEmpty(hospitalId)) {
  1237 + Organization organization = organizationService.getOrganization(Integer.parseInt(hospitalId));
1237 1238 if (organization != null && organization.getYn() == YnEnums.YES.getId()) {
1238 1239 hospital = organization.getName();
1239 1240 }