瀏覽代碼

//yuyue

release_toaliyun_real
xhxu 2 年之前
父節點
當前提交
2aee99f812
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderReservationServiceImpl.java

+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderReservationServiceImpl.java 查看文件

@@ -80,10 +80,10 @@ public class WxCouponOrderReservationServiceImpl implements WxCouponOrderReserva
} }
if(record.getStartDate() != null && wxCoupon.getValidStartDate() != null if(record.getStartDate() != null && wxCoupon.getValidStartDate() != null
&& record.getStartDate().before(wxCoupon.getValidStartDate())){ && record.getStartDate().before(wxCoupon.getValidStartDate())){
return new ResultData(ErrorCode.COUPON_CHANNEL_IS_NOT_STARTED.getCode(),"当前时间无法预约");
return new ResultData(ErrorCode.COUPON_CHANNEL_IS_NOT_STARTED.getCode(),"预约时间不在有效期内");
} }
if(record.getEndDate() != null && record.getEndDate().after(couponOrder.getExpiredTime())){ if(record.getEndDate() != null && record.getEndDate().after(couponOrder.getExpiredTime())){
return new ResultData(ErrorCode.COUPON_CHANNEL_IS_NOT_STARTED.getCode(),"当前时间无法预约");
return new ResultData(ErrorCode.COUPON_CHANNEL_IS_NOT_STARTED.getCode(),"预约时间不在有效期内");
} }
record.setCouponTitle(wxCoupon.getTitle()); record.setCouponTitle(wxCoupon.getTitle());
} }


Loading…
取消
儲存