Commit 604963612694ffc5d7c80b4c9dec2dd77c40d836
1 parent
8af23fd4e7
Exists in
master
and in
8 other branches
孕妇分娩后 变成产妇
Showing 1 changed file with 9 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java
View file @
6049636
... | ... | @@ -14,6 +14,8 @@ |
14 | 14 | import com.lyms.platform.operate.web.result.HighScoreResult; |
15 | 15 | import com.lyms.platform.operate.web.result.PostReviewListResult; |
16 | 16 | import com.lyms.platform.operate.web.result.PostReviewResult; |
17 | +import com.lyms.platform.permission.model.Organization; | |
18 | +import com.lyms.platform.permission.service.OrganizationService; | |
17 | 19 | import com.lyms.platform.pojo.MaternalDeliverModel; |
18 | 20 | import com.lyms.platform.pojo.Patients; |
19 | 21 | import com.lyms.platform.pojo.PostReviewModel; |
... | ... | @@ -22,6 +24,7 @@ |
22 | 24 | import com.lyms.platform.query.PostReviewQuery; |
23 | 25 | import org.apache.commons.collections.CollectionUtils; |
24 | 26 | import org.apache.commons.lang.StringUtils; |
27 | +import org.apache.commons.lang.math.NumberUtils; | |
25 | 28 | import org.springframework.beans.factory.annotation.Autowired; |
26 | 29 | import org.springframework.stereotype.Component; |
27 | 30 | |
... | ... | @@ -45,6 +48,8 @@ |
45 | 48 | private AutoMatchFacade autoMatchFacade; |
46 | 49 | @Autowired |
47 | 50 | private AntenatalExaminationFacade examinationFacade; |
51 | + @Autowired | |
52 | + private OrganizationService organizationService; | |
48 | 53 | |
49 | 54 | public BaseResponse addPostReview(PostReviewRequest postReviewRequest,Integer userId) { |
50 | 55 | if (StringUtils.isEmpty(postReviewRequest.getId())) { |
... | ... | @@ -108,6 +113,10 @@ |
108 | 113 | Assert.notNull(postReviewModel, "没有对应的数据."); |
109 | 114 | PostReviewResult postReviewResult = new PostReviewResult(); |
110 | 115 | postReviewResult.convertToResult(postReviewModel); |
116 | + Organization organization = organizationService.getOrganization(NumberUtils.toInt(postReviewModel.getHospitalId())); | |
117 | + if(null!=organization){ | |
118 | + postReviewResult.setHospitalName(organization.getName()); | |
119 | + } | |
111 | 120 | try { |
112 | 121 | if(StringUtils.isNotEmpty(postReviewModel.getDiagnosis())){ |
113 | 122 | List list = JsonUtil.toList(postReviewModel.getDiagnosis(), List.class); |