|
|
@@ -75,6 +75,9 @@ public class WxCouponController extends BaseController { |
|
|
if(wxCoupon.getRemainInventory() == null || wxCoupon.getInventory() == null) { |
|
|
if(wxCoupon.getRemainInventory() == null || wxCoupon.getInventory() == null) { |
|
|
return new ResultData(ErrorCode.COUPON_STOCK_ERR); |
|
|
return new ResultData(ErrorCode.COUPON_STOCK_ERR); |
|
|
} |
|
|
} |
|
|
|
|
|
if(wxCoupon.getRemainInventory() > wxCoupon.getInventory()) { |
|
|
|
|
|
return new ResultData(ErrorCode.COUPON_STOCK_ERR); |
|
|
|
|
|
} |
|
|
if(wxCoupon.getValidType() == null) { |
|
|
if(wxCoupon.getValidType() == null) { |
|
|
return new ResultData(ErrorCode.COUPON_VALID_DATE_ERR); |
|
|
return new ResultData(ErrorCode.COUPON_VALID_DATE_ERR); |
|
|
} |
|
|
} |
|
|
|