Commit 8e13d70fdff7ebb6c24ca2ba873e71a8ca345de0
1 parent
b1e2aa6285
Exists in
master
and in
6 other branches
返回正常状态修改
Showing 2 changed files with 3 additions and 4 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java
View file @
8e13d70
| ... | ... | @@ -104,7 +104,7 @@ |
| 104 | 104 | data.get("create_hospital_id").toString(), Integer.parseInt(data.get("type").toString()))) |
| 105 | 105 | return RespBuilder.buildErro(ResponseCode.COUPON_TIME_OUT); |
| 106 | 106 | |
| 107 | - return RespBuilder.buildSuccess(ResponseCode.COUPON_IS_NORMAL); | |
| 107 | + return RespBuilder.buildSuccess(ResponseCode.SUCCESS); | |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
platform-common/src/main/java/com/lyms/platform/common/result/ResponseCode.java
View file @
8e13d70
| ... | ... | @@ -6,15 +6,14 @@ |
| 6 | 6 | * @Version: V1.0 |
| 7 | 7 | */ |
| 8 | 8 | public enum ResponseCode { |
| 9 | - SUCCESS(200, "成功"), | |
| 9 | + SUCCESS(0, "成功"), | |
| 10 | 10 | ERROR(500, "系统错误,请联系管理员"), |
| 11 | 11 | |
| 12 | 12 | COUPON_NOT_FOUND(1001, "优惠券不存在"), |
| 13 | 13 | COUPON_NOT_UNIQUE(1002, "优惠券有多个"), |
| 14 | 14 | COUPON_TIME_OUT(1003, "优惠券已过期"), |
| 15 | 15 | COUPON_IS_USERD(1004, "优惠券已被使用"), |
| 16 | - COUPON_IS_DISABLED(1005, "优惠券已被禁用"), | |
| 17 | - COUPON_IS_NORMAL(1006, "正常可使用"); | |
| 16 | + COUPON_IS_DISABLED(1005, "优惠券已被禁用"); | |
| 18 | 17 | |
| 19 | 18 | private Integer code; |
| 20 | 19 | private String msg; |