Kaynağa Gözat

[卷][修改][调整截止日期的判断]

release_toaliyun_real
luozukai 7 yıl önce
ebeveyn
işleme
74813e0209
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. +3
    -0
      mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponController.java

+ 3
- 0
mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponController.java Dosyayı Görüntüle

@@ -179,6 +179,9 @@ public class WxCouponController extends BaseController {
if(wxCoupon.getValidEndDate()!=null && wxCoupon.getValidEndDate().before(coupon.getValidEndDate())){
return new ResultData(ErrorCode.COUPON_STOCK_ENDTIME_ERR);
}
if(wxCoupon.getValidDays()!=null && coupon.getValidDays()!=null && wxCoupon.getValidDays().intValue() <= coupon.getValidDays().intValue()){
return new ResultData(ErrorCode.COUPON_STOCK_ENDTIME_ERR);
}
if((wxCoupon.getValidEndDate()!=null&&coupon.getValidEndDate()!=null && DateUtils.format(wxCoupon.getValidEndDate()).equals(DateUtils.format(coupon.getValidEndDate()))
&& wxCoupon.getInventory().equals(coupon.getInventory()))
||


Yükleniyor…
İptal
Kaydet