Commit 2e7b9175371eec2f341a1ae133c01dea36ac877e
1 parent
e86311f1c2
Exists in
master
and in
6 other branches
删除最后一次顿号
Showing 1 changed file with 3 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/DischargeAbstractFacade.java
View file @
2e7b917
| ... | ... | @@ -71,7 +71,7 @@ |
| 71 | 71 | public DischargeAbstractSaveResult save(DischargeAbstractSaveRequest dischargeAbstractSaveRequest, Integer userId) { |
| 72 | 72 | |
| 73 | 73 | DischargeAbstractSaveResult dischargeAbstractSaveResult = new DischargeAbstractSaveResult(); |
| 74 | - | |
| 74 | + String hId=autoMatchFacade.getHospitalId(userId); | |
| 75 | 75 | /** 验证产检券是否可用 可用就改为已使用状态 */ |
| 76 | 76 | if(StringUtils.isNotBlank(dischargeAbstractSaveRequest.getCouponCode()) && dischargeAbstractSaveRequest.getCouponType() != null) { |
| 77 | 77 | BaseObjectResponse resp = couponService.validate(dischargeAbstractSaveRequest.getCouponCode(), dischargeAbstractSaveRequest.getCouponType(), autoMatchFacade.getHospitalId(userId)); |
| 78 | 78 | |
| ... | ... | @@ -95,12 +95,13 @@ |
| 95 | 95 | String pid = patientsService.findOnePatientById(dischargeAbstractSaveRequest.getPatientId()).getPid(); |
| 96 | 96 | dischargeAbstractMotherModel.setPid(pid); |
| 97 | 97 | dischargeAbstractMotherModel.setYn(YnEnums.YES.getId()); |
| 98 | + dischargeAbstractMotherModel.setHospitalId(hId); | |
| 98 | 99 | if (StringUtils.isEmpty(dischargeAbstractMotherModel.getId())) { |
| 99 | 100 | dischargeAbstractMotherModel = dischargeAbstractMotherService.save(dischargeAbstractMotherModel); |
| 100 | 101 | |
| 101 | 102 | /** 使用优惠券 */ |
| 102 | 103 | if(StringUtils.isNotBlank(dischargeAbstractSaveRequest.getCouponCode()) && dischargeAbstractSaveRequest.getCouponType() != null) { |
| 103 | - couponService.use(autoMatchFacade.getHospitalId(userId), dischargeAbstractSaveRequest.getCouponCode(), userId, dischargeAbstractMotherModel.getId()); | |
| 104 | + couponService.use(hId, dischargeAbstractSaveRequest.getCouponCode(), userId, dischargeAbstractMotherModel.getId()); | |
| 104 | 105 | } |
| 105 | 106 | } else { |
| 106 | 107 | dischargeAbstractMotherService.update(dischargeAbstractMotherModel); |