Commit e28b380dddb4052bd3fa630d5627d59e3d6932bf
1 parent
280cfb6d32
Exists in
master
and in
8 other branches
修改新电子病历
Showing 1 changed file with 15 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java
View file @
e28b380
| ... | ... | @@ -19,7 +19,9 @@ |
| 19 | 19 | import com.lyms.platform.operate.web.result.PostReviewListResult; |
| 20 | 20 | import com.lyms.platform.operate.web.result.PostReviewResult; |
| 21 | 21 | import com.lyms.platform.permission.model.Organization; |
| 22 | +import com.lyms.platform.permission.model.Users; | |
| 22 | 23 | import com.lyms.platform.permission.service.OrganizationService; |
| 24 | +import com.lyms.platform.permission.service.UsersService; | |
| 23 | 25 | import com.lyms.platform.pojo.MaternalDeliverModel; |
| 24 | 26 | import com.lyms.platform.pojo.Patients; |
| 25 | 27 | import com.lyms.platform.pojo.PostReviewModel; |
| ... | ... | @@ -33,6 +35,7 @@ |
| 33 | 35 | |
| 34 | 36 | import java.util.ArrayList; |
| 35 | 37 | import java.util.Collections; |
| 38 | +import java.util.HashMap; | |
| 36 | 39 | import java.util.List; |
| 37 | 40 | |
| 38 | 41 | /** |
| ... | ... | @@ -55,6 +58,8 @@ |
| 55 | 58 | private AntenatalExaminationFacade examinationFacade; |
| 56 | 59 | @Autowired |
| 57 | 60 | private OrganizationService organizationService; |
| 61 | + @Autowired | |
| 62 | + private UsersService usersService; | |
| 58 | 63 | |
| 59 | 64 | /** |
| 60 | 65 | * |
| ... | ... | @@ -187,6 +192,16 @@ |
| 187 | 192 | Assert.notNull(postReviewModel, "没有对应的数据."); |
| 188 | 193 | PostReviewResult postReviewResult = new PostReviewResult(); |
| 189 | 194 | postReviewResult.convertToResult(postReviewModel); |
| 195 | + java.util.Map<String,String> map = new HashMap<>(); | |
| 196 | + if(NumberUtils.isNumber(postReviewModel.getProdDoctor())){ | |
| 197 | + | |
| 198 | + Users users = usersService.getUsers(Integer.valueOf(postReviewModel.getProdDoctor())); | |
| 199 | + if(null!=users){ | |
| 200 | + map.put("id",users.getId()+""); | |
| 201 | + map.put("name",users.getName()); | |
| 202 | + } | |
| 203 | + } | |
| 204 | + postReviewResult.setProdDoctor(map); | |
| 190 | 205 | /* Organization organization = organizationService.getOrganization(NumberUtils.toInt(postReviewModel.getHospitalId())); |
| 191 | 206 | if(null!=organization){ |
| 192 | 207 | postReviewResult.setHospitalName(organization.getName()); |