Commit 58022171a035c1ce849a67e3229b6e167e584d59
1 parent
fe800dc210
Exists in
master
and in
6 other branches
秦皇岛公卫接口
Showing 1 changed file with 7 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdJbgwInterface.java
View file @
5802217
| ... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 | import com.lyms.platform.common.enums.YnEnums; |
| 7 | 7 | import com.lyms.platform.common.utils.DateUtil; |
| 8 | 8 | import com.lyms.platform.common.utils.JsonUtil; |
| 9 | +import com.lyms.platform.operate.web.facade.AutoMatchFacade; | |
| 9 | 10 | import com.lyms.platform.operate.web.utils.*; |
| 10 | 11 | import com.lyms.platform.permission.model.Organization; |
| 11 | 12 | import com.lyms.platform.permission.model.Users; |
| ... | ... | @@ -60,6 +61,8 @@ |
| 60 | 61 | private PostReviewService postReviewService; |
| 61 | 62 | @Autowired |
| 62 | 63 | private BabyCheckService babyCheckService; |
| 64 | + @Autowired | |
| 65 | + private AutoMatchFacade autoMatchFacade; | |
| 63 | 66 | |
| 64 | 67 | /** |
| 65 | 68 | *孕产登记 |
| 66 | 69 | |
| ... | ... | @@ -1112,10 +1115,11 @@ |
| 1112 | 1115 | } |
| 1113 | 1116 | } |
| 1114 | 1117 | map.put("FOLLOWUPDOCTORNAME",checkDoctor); |
| 1115 | - map.put("ORGCODE",patients.getHospitalId()); | |
| 1116 | 1118 | String hospital1 = ""; |
| 1117 | - if (org.apache.commons.lang.StringUtils.isNotEmpty(patients.getHospitalId())) { | |
| 1118 | - Organization organization = organizationService.getOrganization(Integer.parseInt(patients.getHospitalId())); | |
| 1119 | + if (org.apache.commons.lang.StringUtils.isNotEmpty(data.getMakeCreateUser())) { | |
| 1120 | + String id = autoMatchFacade.getHospitalId(Integer.parseInt(data.getMakeCreateUser())); | |
| 1121 | + map.put("ORGCODE",id); | |
| 1122 | + Organization organization = organizationService.getOrganization(Integer.parseInt(id)); | |
| 1119 | 1123 | if (organization != null && organization.getYn() == YnEnums.YES.getId()) { |
| 1120 | 1124 | hospital1 = organization.getName(); |
| 1121 | 1125 | } |