Commit 1afcb663a7c3da4eeb30e6804f266ac00b96709d
1 parent
d6ab223205
Exists in
master
and in
1 other branch
bug修复
Showing 2 changed files with 4 additions and 0 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java
View file @
1afcb66
| ... | ... | @@ -284,6 +284,9 @@ |
| 284 | 284 | CouponInfo couponInfo = couponInfos.get(0); |
| 285 | 285 | Map<String, Object> patientsInfo = getPatientsInfo(couponInfo.getUserId()); |
| 286 | 286 | |
| 287 | + if(couponInfo.getStatus() == 3) { | |
| 288 | + return RespBuilder.buildErro(ResponseCode.COUPON_IS_INVALID, patientsInfo); | |
| 289 | + } | |
| 287 | 290 | if(couponInfo.getStatus() == -1) { |
| 288 | 291 | return RespBuilder.buildErro(ResponseCode.COUPON_IS_DISABLED, patientsInfo); |
| 289 | 292 | } |
platform-common/src/main/java/com/lyms/platform/common/result/ResponseCode.java
View file @
1afcb66
| ... | ... | @@ -18,6 +18,7 @@ |
| 18 | 18 | COUPON_NOT_AVAILABLE(1008, "使用的优惠券类型不正确"), |
| 19 | 19 | COUPON_AREA_NO_USE(1009, "该区域不能使用"), |
| 20 | 20 | OUPON_HOSPITAL_NOT_BOUND_AREA(1010, "该医院未绑定区域ID"), |
| 21 | + COUPON_IS_INVALID(1011, "该优惠券已被作废"), | |
| 21 | 22 | |
| 22 | 23 | COUPON_NOT_FOUND(1001, "优惠券不存在"), |
| 23 | 24 | COUPON_NOT_UNIQUE(1002, "优惠券有多个"), |