|
|
@@ -378,7 +378,11 @@ public class WxOrderServiceImpl implements WxOrderService { |
|
|
if (isPress) { |
|
|
if (isPress) { |
|
|
// 初始砍价信息 |
|
|
// 初始砍价信息 |
|
|
record.setPressCurrentNum(0); |
|
|
record.setPressCurrentNum(0); |
|
|
record.setPressEndDate(DateUtils.getHourTimeAfter(coupon.getPressLimitHours(), new Date())); |
|
|
|
|
|
|
|
|
// 砍价券过期时间取券的过期时间和砍价限制时间中时间小的那个 |
|
|
|
|
|
Date pressEndDate = DateUtils.getHourTimeAfter(coupon.getPressLimitHours(), new Date()); |
|
|
|
|
|
if(pressEndDate.after(coupon.getValidEndDate())) |
|
|
|
|
|
pressEndDate = coupon.getValidEndDate(); |
|
|
|
|
|
record.setPressEndDate(pressEndDate); |
|
|
record.setPressCurrentValue(coupon.getPrice() - coupon.getSalePrice()); |
|
|
record.setPressCurrentValue(coupon.getPrice() - coupon.getSalePrice()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|