|
|
|
@@ -644,7 +644,7 @@ public class WxOrderServiceImpl implements WxOrderService { |
|
|
|
if (coupon.getValidType().equals(EnumValidStatus.VALID_RANGE.getCode()) || |
|
|
|
coupon.getType().equals(EnumCouponType.COUPON_TINGCHE.getCode())) { |
|
|
|
valid_date = coupon.getValidEndDate(); |
|
|
|
if (coupon.getSalePrice() > 0) { |
|
|
|
if (coupon.getSalePrice() > 0 && !coupon.checkIsCard()) { |
|
|
|
// 有价券核销有效期不能大于分账过期时间 |
|
|
|
Date limit_date = DateUtils.getTimeAfterDays(limit_days, curr); |
|
|
|
if (valid_date.after(limit_date)) { |
|
|
|
@@ -652,7 +652,7 @@ public class WxOrderServiceImpl implements WxOrderService { |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (coupon.getSalePrice() > 0) { |
|
|
|
if (coupon.getSalePrice() > 0 && !coupon.checkIsCard()) { |
|
|
|
// 有价券核销有效期不能大于分账过期时间 |
|
|
|
if (coupon.getValidDays() < Constant.WX_LIMIT_DAYS) { |
|
|
|
limit_days = coupon.getValidDays(); |
|
|
|
|