|
|
|
@@ -108,12 +108,16 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { |
|
|
|
} |
|
|
|
|
|
|
|
WxCoupon wxCoupon = wxCouponService.getById(couponid); |
|
|
|
if(wxCoupon==null){ |
|
|
|
logger.debug(couponid+"没有查到对应的券信息"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
if(wxCoupon.getStatus()!=0) { |
|
|
|
logger.debug(wxCoupon.getId()+"状态不对"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
if(wxCoupon.getValidEndDate().before(endTime)){ |
|
|
|
if(wxCoupon.getValidEndDate()!=null&&wxCoupon.getValidEndDate().before(endTime)){ |
|
|
|
logger.debug(wxCoupon.getId()+"发放时间不能晚于使用时间"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|