Commit 486b78a8e2e408beb95785080d9d331e9af7b8ca
1 parent
a1dbf8febe
Exists in
master
and in
6 other branches
1
Showing 1 changed file with 4 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java
View file @
486b78a
... | ... | @@ -255,7 +255,7 @@ |
255 | 255 | |
256 | 256 | /** 验证产检券是否可用 可用就改为已使用状态(血红蛋白) */ |
257 | 257 | if(org.apache.commons.lang3.StringUtils.isNotBlank(request.getHemoglobinCoupon()) && request.getCouponType() != null) { |
258 | - BaseObjectResponse resp = couponService.validate(request.getHemoglobinCoupon(), 10, autoMatchFacade.getHospitalId(userId)); | |
258 | + BaseObjectResponse resp = couponService.validate(request.getHemoglobinCoupon(), request.getCouponType(), autoMatchFacade.getHospitalId(userId)); | |
259 | 259 | if(resp.getErrorcode() != 0) { |
260 | 260 | return resp; |
261 | 261 | } |
... | ... | @@ -307,6 +307,9 @@ |
307 | 307 | /** 使用优惠券 */ |
308 | 308 | if(org.apache.commons.lang3.StringUtils.isNotBlank(request.getCouponCode()) && request.getCouponType() != null) { |
309 | 309 | couponService.use(autoMatchFacade.getHospitalId(userId), request.getCouponCode(), userId, model.getId()); |
310 | + } | |
311 | + if(org.apache.commons.lang3.StringUtils.isNotBlank(request.getCouponCode()) && request.getCouponType() != null) { | |
312 | + couponService.use(autoMatchFacade.getHospitalId(userId), request.getHemoglobinCoupon(), userId, model.getId()); | |
310 | 313 | } |
311 | 314 | |
312 | 315 | BaseObjectResponse br = new BaseObjectResponse(); |