Commit 785a478b590f8475e60139780444aca8488518b3
1 parent
59cc18e23f
Exists in
master
and in
1 other branch
1
Showing 1 changed file with 15 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
View file @
785a478
... | ... | @@ -12,6 +12,7 @@ |
12 | 12 | import com.lyms.platform.operate.web.request.MatDeliverQueryRequest; |
13 | 13 | import com.lyms.platform.operate.web.result.MatDeliverListResult; |
14 | 14 | import com.lyms.platform.operate.web.result.MaternalDeliverResult; |
15 | +import com.lyms.platform.permission.model.Organization; | |
15 | 16 | import com.lyms.platform.permission.service.OrganizationService; |
16 | 17 | import com.lyms.platform.pojo.BabyModel; |
17 | 18 | import com.lyms.platform.pojo.MaternalDeliverModel; |
18 | 19 | |
... | ... | @@ -201,11 +202,23 @@ |
201 | 202 | map.put("getTaiPan", getTaiPan()); |
202 | 203 | map.put("getQidaiYc", getQidaiYc()); |
203 | 204 | map.put("getRenShenJieJuEnums", getRenShenJieJuEnums()); |
204 | - map.put("organizations", organizationService.queryHospital()); | |
205 | + map.put("organizations",convert()); | |
205 | 206 | return new BaseObjectResponse().setData(map).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
206 | 207 | } |
207 | 208 | |
208 | - | |
209 | + private List convert(){ | |
210 | + List<Organization> organization = organizationService.queryHospital(); | |
211 | + List data = new ArrayList(); | |
212 | + if(CollectionUtils.isNotEmpty(organization)){ | |
213 | + for(Organization org:organization){ | |
214 | + Map map = new HashMap(); | |
215 | + map.put("id",org.getId()); | |
216 | + map.put("name",org.getName()); | |
217 | + data.add(map); | |
218 | + } | |
219 | + } | |
220 | + return data; | |
221 | + } | |
209 | 222 | |
210 | 223 | //胎方位 |
211 | 224 | public List<Object> getFetPosition() { |