Commit 50e7aa0a69309b601a84187e81e3cb00e54baffa
1 parent
97fdc9660e
Exists in
master
and in
8 other branches
增加是否通知
Showing 1 changed file with 14 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
View file @
50e7aa0
... | ... | @@ -2,6 +2,7 @@ |
2 | 2 | |
3 | 3 | import com.lyms.platform.biz.service.ApplyOrderService; |
4 | 4 | import com.lyms.platform.biz.service.PatientsService; |
5 | +import com.lyms.platform.biz.service.SieveService; | |
5 | 6 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
6 | 7 | import com.lyms.platform.common.enums.YnEnums; |
7 | 8 | import com.lyms.platform.common.result.BaseListResponse; |
8 | 9 | |
... | ... | @@ -17,9 +18,11 @@ |
17 | 18 | import com.lyms.platform.pojo.Patients; |
18 | 19 | import com.lyms.platform.pojo.ReferralApplyOrderModel; |
19 | 20 | import com.lyms.platform.pojo.SieveApplyOrderModel; |
21 | +import com.lyms.platform.pojo.SieveModel; | |
20 | 22 | import com.lyms.platform.query.PatientsQuery; |
21 | 23 | import com.lyms.platform.query.ReferralApplyOrderQuery; |
22 | 24 | import com.lyms.platform.query.SieveApplyOrderQuery; |
25 | +import com.lyms.platform.query.SieveQuery; | |
23 | 26 | import org.apache.commons.collections.CollectionUtils; |
24 | 27 | import org.springframework.beans.factory.annotation.Autowired; |
25 | 28 | import org.springframework.stereotype.Component; |
... | ... | @@ -39,6 +42,8 @@ |
39 | 42 | private AutoMatchFacade autoMatchFacade; |
40 | 43 | @Autowired |
41 | 44 | private BasicConfigFacade basicConfigFacade; |
45 | + @Autowired | |
46 | + private SieveService sieveService; | |
42 | 47 | |
43 | 48 | /** |
44 | 49 | * 增加转诊申请 |
... | ... | @@ -83,6 +88,15 @@ |
83 | 88 | SieveApplyOrderModel sieveApplyOrderModel = sieveApplyOrderAddRequest.convertToDataModel(); |
84 | 89 | sieveApplyOrderModel.setCreated(new Date()); |
85 | 90 | applyOrderService.addOneSieveApplyOrder(sieveApplyOrderModel); |
91 | + SieveQuery sieveQuery=new SieveQuery(); | |
92 | + sieveQuery.setYn(YnEnums.YES.getId()); | |
93 | + sieveQuery.setParentId(sieveApplyOrderAddRequest.getParentId()); | |
94 | + List<SieveModel> sieveModels= sieveService.queryList(sieveQuery); | |
95 | + if(CollectionUtils.isNotEmpty(sieveModels)){ | |
96 | + SieveModel sieveModel = sieveModels.get(0); | |
97 | + sieveModel.setStatus(2); | |
98 | + sieveService.updateOneChanQianDiaSieve(sieveModel); | |
99 | + } | |
86 | 100 | return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
87 | 101 | } |
88 | 102 |