|
|
|
@@ -298,7 +298,9 @@ public class WxCouponController extends BaseController { |
|
|
|
return new ResultData(ErrorCode.COUPON_STOCK_ENDTIME_ERR); |
|
|
|
} |
|
|
|
wxCoupon.setSalePrice(coupon.getSalePrice()); |
|
|
|
if(!wxCouponService.validCouponDate(wxCoupon)) { |
|
|
|
if(!EnumCouponType.COUPON_DOUYIN.getCode().equals(wxCoupon.getType()) |
|
|
|
&& !wxCouponService.validCouponDate(wxCoupon)) { |
|
|
|
// if(!wxCouponService.validCouponDate(wxCoupon)) { |
|
|
|
return new ResultData(ResultData.ERROR,"券有效使用日期必须在30天以内。"); |
|
|
|
} |
|
|
|
wxCoupon.setSalePrice(null); |
|
|
|
|