瀏覽代碼

[卡券投放][修改]:标记是否成功

release_toaliyun_real
masterspirit 7 年之前
父節點
當前提交
4a0e2cb649
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. +5
    -1
      mallinkService/src/main/java/com/simple/service/impl/WxCouponChannelServiceImpl.java

+ 5
- 1
mallinkService/src/main/java/com/simple/service/impl/WxCouponChannelServiceImpl.java 查看文件

@@ -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;
}


Loading…
取消
儲存