Commit faf5f1c2edb9659b71d3f28aa7012cca70a19040
1 parent
6e741e14a9
Exists in
master
and in
8 other branches
产妇增加字段
Showing 1 changed file with 10 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
faf5f1c
1 | 1 | package com.lyms.platform.operate.web.facade; |
2 | 2 | |
3 | 3 | import com.lyms.platform.biz.service.AntenatalExaminationService; |
4 | +import com.lyms.platform.biz.service.BasicConfigService; | |
4 | 5 | import com.lyms.platform.biz.service.PatientsService; |
5 | 6 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
6 | 7 | import com.lyms.platform.common.enums.*; |
7 | 8 | import com.lyms.platform.common.result.BaseObjectResponse; |
8 | 9 | import com.lyms.platform.common.result.BaseResponse; |
9 | 10 | import com.lyms.platform.common.utils.Assert; |
11 | +import com.lyms.platform.common.utils.JsonUtil; | |
10 | 12 | import com.lyms.platform.common.utils.SystemConfig; |
11 | 13 | import com.lyms.platform.operate.web.request.AntExAddRequest; |
12 | 14 | import com.lyms.platform.operate.web.request.AntExQueryRequest; |
... | ... | @@ -17,6 +19,7 @@ |
17 | 19 | import com.lyms.platform.operate.web.result.AntexListResult; |
18 | 20 | import com.lyms.platform.pojo.AntExChuModel; |
19 | 21 | import com.lyms.platform.pojo.AntenatalExaminationModel; |
22 | +import com.lyms.platform.pojo.BasicConfig; | |
20 | 23 | import com.lyms.platform.pojo.Patients; |
21 | 24 | import com.lyms.platform.query.AntExChuQuery; |
22 | 25 | import com.lyms.platform.query.PatientsQuery; |
... | ... | @@ -46,6 +49,8 @@ |
46 | 49 | private PatientsService patientsService; |
47 | 50 | @Autowired |
48 | 51 | private BasicConfigFacade basicConfigFacade; |
52 | + @Autowired | |
53 | + private BasicConfigService basicConfigService; | |
49 | 54 | |
50 | 55 | /** |
51 | 56 | * 增加一条产前检查 |
... | ... | @@ -182,6 +187,11 @@ |
182 | 187 | Assert.notNull(examinationModel, "id不存在."); |
183 | 188 | AntenatalExaminationResult antenatalExaminationResult = new AntenatalExaminationResult(); |
184 | 189 | antenatalExaminationResult.convertToResult(examinationModel); |
190 | + try{ | |
191 | + List list1= JsonUtil.toList(examinationModel.getRiskFactor(), List.class); | |
192 | + antenatalExaminationResult.setRiskFactor(list1); | |
193 | + }catch (Exception e){ | |
194 | + } | |
185 | 195 | object=antenatalExaminationResult; |
186 | 196 | }else{ |
187 | 197 | //查询初诊数据 |