Ver a proveniência

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

release_toaliyun_real
masterspirit há 7 anos
ascendente
cometimento
4a0e2cb649
1 ficheiros alterados com 5 adições e 1 eliminações
  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 Ver ficheiro

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


Carregando…
Cancelar
Guardar