Commit 475c30849d30431cdf2c86ff8a9bb280d01172d7

Authored by jiangjiazhi
1 parent 5ace7518de

增加是否通知

Showing 1 changed file with 6 additions and 5 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java View file @ 475c308
... ... @@ -96,9 +96,10 @@
96 96 ReferralApplyOrderQuery referralApplyOrderQuery = new ReferralApplyOrderQuery();
97 97 referralApplyOrderQuery.setId(id);
98 98 List<ReferralApplyOrderModel> list = applyOrderService.queryReferralApplyOrderWithQuery(referralApplyOrderQuery);
99   - ReferralApplyOrderResult referralApplyOrderResult=new ReferralApplyOrderResult();
100   - if(CollectionUtils.isNotEmpty(list)){
101   - referralApplyOrderResult.convertToResult(list.get(0));
  99 + ReferralApplyOrderResult referralApplyOrderResult = new ReferralApplyOrderResult();
  100 + if (CollectionUtils.isNotEmpty(list)) {
  101 + Patients patients = patientsService.findOnePatientById(list.get(0).getParentId());
  102 + referralApplyOrderResult.convertToResult(list.get(0), patients);
102 103 }
103 104 return new BaseObjectResponse().setData(referralApplyOrderResult).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功");
104 105 }
... ... @@ -118,8 +119,8 @@
118 119 SieveApplyOrderModel sieveApplyOrderModel = null;
119 120 if (CollectionUtils.isNotEmpty(list)) {
120 121 sieveApplyOrderModel = list.get(0);
121   - Patients patients =patientsService.findOnePatientById(sieveApplyOrderModel.getParentId());
122   - sieveApplyOrderResult.convertToResult(sieveApplyOrderModel,patients);
  122 + Patients patients = patientsService.findOnePatientById(sieveApplyOrderModel.getParentId());
  123 + sieveApplyOrderResult.convertToResult(sieveApplyOrderModel, patients);
123 124 }
124 125 return new BaseObjectResponse().setData(sieveApplyOrderResult).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功");
125 126 }