Commit 4acf993c0a38c08e832644d39fb2333ac48dd199
1 parent
e2c14a3879
Exists in
master
and in
1 other branch
产妇增加字段
Showing 1 changed file with 12 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
4acf993
| ... | ... | @@ -166,9 +166,21 @@ |
| 166 | 166 | } |
| 167 | 167 | //查询产前检查记录 |
| 168 | 168 | List list = antenatalExaminationService.findAllByParentId(patients.getId()); |
| 169 | + List data = new ArrayList(); | |
| 170 | + if(StringUtils.isNotEmpty(antExChuModel.getHighrisk())){ | |
| 171 | + List l = JsonUtil.toList(antExChuModel.getHighrisk(),List.class); | |
| 172 | + for(int i=0;i<l.size();i++){ | |
| 173 | + String key = (String)l.get(i); | |
| 174 | + BasicConfig basicConfig = basicConfigService.getOneBasicConfigById(key); | |
| 175 | + if(null!=basicConfig){ | |
| 176 | + data.add(basicConfig.getName()); | |
| 177 | + } | |
| 178 | + } | |
| 179 | + } | |
| 169 | 180 | |
| 170 | 181 | antexListResult.convertToResult(list,patients,antExChuModel); |
| 171 | 182 | |
| 183 | + antexListResult.setRiskFactor(data); | |
| 172 | 184 | return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setData(antexListResult); |
| 173 | 185 | } |
| 174 | 186 |