Commit 202bf21a27822009f216f20ae0745551e821ee6e
1 parent
82b6ad9f80
Exists in
master
and in
6 other branches
血红蛋白券bug修复
Showing 1 changed file with 6 additions and 6 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java
View file @
202bf21
| ... | ... | @@ -246,16 +246,16 @@ |
| 246 | 246 | public BaseResponse addBabyCheck(BabyCheckRequest request, Integer userId) { |
| 247 | 247 | |
| 248 | 248 | /** 验证产检券是否可用 可用就改为已使用状态 */ |
| 249 | - if(org.apache.commons.lang3.StringUtils.isNotBlank(request.getCouponCode()) && request.getCouponType() != null) { | |
| 250 | - BaseObjectResponse resp = couponService.validate(request.getCouponCode(), request.getCouponType(), autoMatchFacade.getHospitalId(userId)); | |
| 249 | + if(org.apache.commons.lang3.StringUtils.isNotBlank(request.getCouponCode())) { | |
| 250 | + BaseObjectResponse resp = couponService.validate(request.getCouponCode(), 8, autoMatchFacade.getHospitalId(userId)); | |
| 251 | 251 | if(resp.getErrorcode() != 0) { |
| 252 | 252 | return resp; |
| 253 | 253 | } |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | /** 验证产检券是否可用 可用就改为已使用状态(血红蛋白) */ |
| 257 | - if(org.apache.commons.lang3.StringUtils.isNotBlank(request.getHemoglobinCoupon()) && request.getCouponType() != null) { | |
| 258 | - BaseObjectResponse resp = couponService.validate(request.getHemoglobinCoupon(), request.getCouponType(), autoMatchFacade.getHospitalId(userId)); | |
| 257 | + if(org.apache.commons.lang3.StringUtils.isNotBlank(request.getHemoglobinCoupon())) { | |
| 258 | + BaseObjectResponse resp = couponService.validate(request.getHemoglobinCoupon(), 10, autoMatchFacade.getHospitalId(userId)); | |
| 259 | 259 | if(resp.getErrorcode() != 0) { |
| 260 | 260 | return resp; |
| 261 | 261 | } |
| 262 | 262 | |
| ... | ... | @@ -305,10 +305,10 @@ |
| 305 | 305 | model = babyCheckService.addBabyCheck(model); |
| 306 | 306 | |
| 307 | 307 | /** 使用优惠券 */ |
| 308 | - if(org.apache.commons.lang3.StringUtils.isNotBlank(request.getCouponCode()) && request.getCouponType() != null) { | |
| 308 | + if(org.apache.commons.lang3.StringUtils.isNotBlank(request.getCouponCode())) { | |
| 309 | 309 | couponService.use(autoMatchFacade.getHospitalId(userId), request.getCouponCode(), userId, model.getId()); |
| 310 | 310 | } |
| 311 | - if(org.apache.commons.lang3.StringUtils.isNotBlank(request.getCouponCode()) && request.getCouponType() != null) { | |
| 311 | + if(org.apache.commons.lang3.StringUtils.isNotBlank(request.getHemoglobinCoupon())) { | |
| 312 | 312 | couponService.use(autoMatchFacade.getHospitalId(userId), request.getHemoglobinCoupon(), userId, model.getId()); |
| 313 | 313 | } |
| 314 | 314 |