Commit 1308b1fae4aba7376cb1c4bcb3789585c51ac4e2
1 parent
8aebcc6eff
Exists in
master
and in
1 other branch
孕妇分娩后 变成产妇
Showing 1 changed file with 12 additions and 14 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
View file @
1308b1f
... | ... | @@ -217,13 +217,7 @@ |
217 | 217 | if (null != examinationModel && StringUtils.isNotEmpty(examinationModel.get(0).getRiskFactor())) { |
218 | 218 | tTireNumber = examinationModel.get(0).getTireNumber(); |
219 | 219 | List l = JsonUtil.toList(examinationModel.get(0).getRiskFactor(), List.class); |
220 | - for (int i = 0; i < l.size(); i++) { | |
221 | - String key = (String) l.get(i); | |
222 | - BasicConfig basicConfig = basicConfigService.getOneBasicConfigById(key); | |
223 | - if (null != basicConfig) { | |
224 | - data.add(basicConfig.getName()); | |
225 | - } | |
226 | - } | |
220 | + findBasicConfig(l,data); | |
227 | 221 | } |
228 | 222 | } else { |
229 | 223 | AntExChuQuery antExChuQuery = new AntExChuQuery(); |
... | ... | @@ -233,13 +227,7 @@ |
233 | 227 | if (CollectionUtils.isNotEmpty(antExChuModels)) { |
234 | 228 | tTireNumber = antExChuModels.get(0).getTireNumber(); |
235 | 229 | List l = JsonUtil.toList(antExChuModels.get(0).getHighrisk(), List.class); |
236 | - for (int i = 0; i < l.size(); i++) { | |
237 | - String key = (String) l.get(i); | |
238 | - BasicConfig basicConfig = basicConfigService.getOneBasicConfigById(key); | |
239 | - if (null != basicConfig) { | |
240 | - data.add(basicConfig.getName()); | |
241 | - } | |
242 | - } | |
230 | + findBasicConfig(l,data); | |
243 | 231 | } |
244 | 232 | } |
245 | 233 | |
... | ... | @@ -248,6 +236,16 @@ |
248 | 236 | } catch (Exception e) { |
249 | 237 | } |
250 | 238 | return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setData(matDeliverListResult); |
239 | + } | |
240 | + | |
241 | + private void findBasicConfig(List l,List data){ | |
242 | + for (int i = 0; i < l.size(); i++) { | |
243 | + String key = (String) l.get(i); | |
244 | + BasicConfig basicConfig = basicConfigService.getOneBasicConfigById(key); | |
245 | + if (null != basicConfig) { | |
246 | + data.add(basicConfig.getName()); | |
247 | + } | |
248 | + } | |
251 | 249 | } |
252 | 250 | |
253 | 251 | /** |