Kaynağa Gözat

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

release_toaliyun_real
masterspirit 7 yıl önce
ebeveyn
işleme
4a0e2cb649
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  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 Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet