|
|
|
@@ -233,6 +233,11 @@ public class WxCouponPasswordController extends BaseController { |
|
|
|
}catch(Exception e) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_TAKE_OFF.getCode(),"卡号或者卡密错误."); |
|
|
|
} |
|
|
|
|
|
|
|
if (password.getStatus().intValue() == EnumCouponPasswordStatus.CANCEL.getCode().intValue()) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_TAKE_OFF.getCode(),"卡已作废."); |
|
|
|
} |
|
|
|
|
|
|
|
WxCoupon coupon = couponService.getById(password.getCouponId(),password.getTenantId()); |
|
|
|
if (coupon == null) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_EMPTY); |
|
|
|
|