Commit 48002178c7660cf0d11a04597057b8fcaefe76c0
1 parent
703bfcb3ab
Exists in
master
and in
1 other branch
孕妇建档外院医生显示
Showing 2 changed files with 24 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
4800217
| ... | ... | @@ -611,6 +611,17 @@ |
| 611 | 611 | Patients p = patients.get(0); |
| 612 | 612 | result = getResult(p); |
| 613 | 613 | } |
| 614 | + if (result != null && StringUtils.isNotEmpty(result.getBookbuildingDoctor())) | |
| 615 | + { | |
| 616 | + Organization org = organizationService.getOrganization(Integer.parseInt(result.getBookbuildingDoctor())); | |
| 617 | + if (org != null) | |
| 618 | + { | |
| 619 | + Map<String,String> doctorObj = new HashMap<>(); | |
| 620 | + doctorObj.put("id",result.getBookbuildingDoctor()); | |
| 621 | + doctorObj.put("name",org.getName()); | |
| 622 | + result.setBuildDoctorObj(doctorObj); | |
| 623 | + } | |
| 624 | + } | |
| 614 | 625 | BaseObjectResponse objectResponse = new BaseObjectResponse(); |
| 615 | 626 | objectResponse.setData(result); |
| 616 | 627 | objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/PregnantInfoResult.java
View file @
4800217
| 1 | 1 | package com.lyms.platform.operate.web.result; |
| 2 | 2 | |
| 3 | +import java.util.Map; | |
| 4 | + | |
| 3 | 5 | /** |
| 4 | 6 | * Created by Administrator on 2016/6/15. |
| 5 | 7 | */ |
| ... | ... | @@ -132,6 +134,17 @@ |
| 132 | 134 | |
| 133 | 135 | //分娩状态 0未终止妊娠 1终止妊娠 |
| 134 | 136 | private Integer dueStatus; |
| 137 | + | |
| 138 | + //建档医生对象 | |
| 139 | + private Map<String,String> buildDoctorObj; | |
| 140 | + | |
| 141 | + public Map<String, String> getBuildDoctorObj() { | |
| 142 | + return buildDoctorObj; | |
| 143 | + } | |
| 144 | + | |
| 145 | + public void setBuildDoctorObj(Map<String, String> buildDoctorObj) { | |
| 146 | + this.buildDoctorObj = buildDoctorObj; | |
| 147 | + } | |
| 135 | 148 | |
| 136 | 149 | public Integer getDueStatus() { |
| 137 | 150 | return dueStatus; |