Commit a3470bb45142336aacbc2dd2897ed125bd9bbe33

Authored by jiangjiazhi
1 parent 94866c2b9b

1

Showing 1 changed file with 18 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java View file @ a3470bb
... ... @@ -18,6 +18,8 @@
18 18 import com.lyms.platform.operate.web.result.AntenatalExaminationResult;
19 19 import com.lyms.platform.operate.web.result.AntexChuResult;
20 20 import com.lyms.platform.operate.web.result.AntexListResult;
  21 +import com.lyms.platform.permission.model.Organization;
  22 +import com.lyms.platform.permission.service.OrganizationService;
21 23 import com.lyms.platform.pojo.*;
22 24 import com.lyms.platform.query.AntExChuQuery;
23 25 import com.lyms.platform.query.PatientsQuery;
... ... @@ -50,6 +52,8 @@
50 52 private BasicConfigService basicConfigService;
51 53 @Autowired
52 54 private ApplyOrderService applyOrderService;
  55 + @Autowired
  56 + private OrganizationService organizationService;
53 57  
54 58 /**
55 59 * 增加一条产前检查
56 60  
... ... @@ -266,9 +270,22 @@
266 270 map.put("ydqjd", basicConfigFacade.getBaseicConfigByParentId(SystemConfig.YDQJD));
267 271 map.put("fxys", basicConfigFacade.getBaseicConfigByParentId(SystemConfig.FXYS));
268 272 map.put("gwfz", basicConfigFacade.getBaseicConfigByParentId(SystemConfig.GWFZ));
  273 + map.put("organizations",convert());
269 274 return new BaseObjectResponse().setData(map).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功");
270 275 }
271   -
  276 + private List convert(){
  277 + List<Organization> organization = organizationService.queryHospital();
  278 + List data = new ArrayList();
  279 + if(CollectionUtils.isNotEmpty(organization)){
  280 + for(Organization org:organization){
  281 + Map map = new HashMap();
  282 + map.put("id",org.getId());
  283 + map.put("name",org.getName());
  284 + data.add(map);
  285 + }
  286 + }
  287 + return data;
  288 + }
272 289 public List<Object> getFuZhong() {
273 290 List<Object> list = new ArrayList<>();
274 291 for (FuZhongEnums enums : FuZhongEnums.values()) {