Commit 07828a8388cdcf3bb7272baa0426fd5d685ff084
1 parent
1f46c8c916
Exists in
master
and in
1 other branch
增加设置parentid
Showing 1 changed file with 3 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
View file @
07828a8
| ... | ... | @@ -76,7 +76,8 @@ |
| 76 | 76 | |
| 77 | 77 | ReferralApplyOrderQuery referralApplyOrderQuery=new ReferralApplyOrderQuery(); |
| 78 | 78 | referralApplyOrderQuery.setParentId(referralApplyOrderModel.getParentId()); |
| 79 | - | |
| 79 | + String hospital = autoMatchFacade.getHospitalId(userId); | |
| 80 | + referralApplyOrderQuery.setOutHospitalId(hospital); | |
| 80 | 81 | List<ReferralApplyOrderModel> list = applyOrderService.queryReferralApplyOrderWithQuery(referralApplyOrderQuery); |
| 81 | 82 | if(CollectionUtils.isEmpty(list)){ |
| 82 | 83 | if (2 == type) { |
| ... | ... | @@ -123,8 +124,7 @@ |
| 123 | 124 | |
| 124 | 125 | //孕妇 |
| 125 | 126 | referralApplyOrderModel.setType(type); |
| 126 | - List<Integer> areaId = autoMatchFacade.matchOrgId(userId); | |
| 127 | - referralApplyOrderModel.setOutHospitalId(areaId.get(0) + ""); | |
| 127 | + referralApplyOrderModel.setOutHospitalId(hospital); | |
| 128 | 128 | applyOrderService.addOneReferralApplyOrder(referralApplyOrderModel); |
| 129 | 129 | } |
| 130 | 130 |