Procházet zdrojové kódy

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

release_toaliyun_real
masterspirit před 7 roky
rodič
revize
4a0e2cb649
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  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 Zobrazit soubor

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


Načítá se…
Zrušit
Uložit