Commit 6fd6e131094820783bf3d956dc520904fdd84413
1 parent
a891d82882
Exists in
master
and in
1 other branch
孕妇分娩后 变成产妇
Showing 1 changed file with 29 additions and 9 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
View file @
6fd6e13
1 | 1 | package com.lyms.platform.operate.web.facade; |
2 | 2 | |
3 | -import com.lyms.platform.biz.service.ApplyOrderService; | |
4 | -import com.lyms.platform.biz.service.BabyService; | |
5 | -import com.lyms.platform.biz.service.PatientsService; | |
6 | -import com.lyms.platform.biz.service.SieveService; | |
3 | +import com.lyms.platform.biz.service.*; | |
7 | 4 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
8 | 5 | import com.lyms.platform.common.enums.SexEnum; |
9 | 6 | import com.lyms.platform.common.enums.YnEnums; |
... | ... | @@ -11,6 +8,7 @@ |
11 | 8 | import com.lyms.platform.common.result.BaseObjectResponse; |
12 | 9 | import com.lyms.platform.common.result.BaseResponse; |
13 | 10 | import com.lyms.platform.common.utils.DateUtil; |
11 | +import com.lyms.platform.common.utils.JsonUtil; | |
14 | 12 | import com.lyms.platform.common.utils.SystemConfig; |
15 | 13 | import com.lyms.platform.operate.web.request.ApplyOrderQueryRequest; |
16 | 14 | import com.lyms.platform.operate.web.request.BabyApplyOrderQueryRequest; |
... | ... | @@ -25,10 +23,7 @@ |
25 | 23 | import com.lyms.platform.permission.service.OrganizationService; |
26 | 24 | import com.lyms.platform.permission.service.UsersService; |
27 | 25 | import com.lyms.platform.pojo.*; |
28 | -import com.lyms.platform.query.PatientsQuery; | |
29 | -import com.lyms.platform.query.ReferralApplyOrderQuery; | |
30 | -import com.lyms.platform.query.SieveApplyOrderQuery; | |
31 | -import com.lyms.platform.query.SieveQuery; | |
26 | +import com.lyms.platform.query.*; | |
32 | 27 | import org.apache.commons.collections.CollectionUtils; |
33 | 28 | import org.apache.commons.lang.StringUtils; |
34 | 29 | import org.apache.commons.lang.math.NumberUtils; |
... | ... | @@ -63,6 +58,10 @@ |
63 | 58 | private AntenatalExaminationFacade antenatalExaminationFacade; |
64 | 59 | @Autowired |
65 | 60 | private UsersService usersService; |
61 | + @Autowired | |
62 | + private BasicConfigService basicConfigService; | |
63 | + @Autowired | |
64 | + private BabyBookbuildingService babyBookbuildingService; | |
66 | 65 | |
67 | 66 | /** |
68 | 67 | * 增加转诊申请 |
69 | 68 | |
... | ... | @@ -271,8 +270,29 @@ |
271 | 270 | if (null != zhuanc1) { |
272 | 271 | zhuanRname = zhuanc1.getName(); |
273 | 272 | } |
274 | - | |
273 | + BabyModelQuery babyModelQuery=new BabyModelQuery(); | |
274 | + babyModelQuery.setId(applyOrderModel.getParentId()); | |
275 | + babyModelQuery.setYn(YnEnums.YES.getId()); | |
276 | + List<BabyModel> babyModel=babyBookbuildingService.queryBabyBuildByCond(babyModelQuery); | |
275 | 277 | babyApplyOrderResult.convert(applyOrderModel, zhuanCName, zhuanRname); |
278 | + if(CollectionUtils.isNotEmpty(babyModel)){ | |
279 | + BabyModel model= babyModel.get(0); | |
280 | + String diagnose = ""; | |
281 | + if (!com.lyms.platform.common.utils.StringUtils.isEmpty(model.getDiagnose())) { | |
282 | + List diagList = JsonUtil.toList(model.getDiagnose(), List.class); | |
283 | + if (CollectionUtils.isNotEmpty(diagList)) { | |
284 | + diagnose = ""; | |
285 | + for (Object obj : diagList) { | |
286 | + BasicConfig basicConfig = basicConfigService.getOneBasicConfigById((String) obj); | |
287 | + if (basicConfig != null) { | |
288 | + diagnose += basicConfig.getName() + " "; | |
289 | + } | |
290 | + } | |
291 | + } | |
292 | + } | |
293 | + babyApplyOrderResult.sethRisk(diagnose); | |
294 | + } | |
295 | + | |
276 | 296 | babyApplyOrderResults.add(babyApplyOrderResult); |
277 | 297 | } |
278 | 298 | } |