|
|
@@ -1234,10 +1234,11 @@ public class LifeDiscountCouponStoreFriendServiceImpl extends ServiceImpl<LifeDi
|
|
|
}
|
|
|
if (!Integer.valueOf(1).equals(coupon.getLongTermValid())) {
|
|
|
LocalDate beginDate = coupon.getBeginGetDate();
|
|
|
- String specifiedDayStr = coupon.getSpecifiedDay();
|
|
|
if (beginDate == null) {
|
|
|
- throw new IllegalArgumentException("优惠券开始日期不能为空");
|
|
|
+ beginDate = LocalDate.now(ZoneId.systemDefault());
|
|
|
+ coupon.setBeginGetDate(beginDate);
|
|
|
}
|
|
|
+ String specifiedDayStr = coupon.getSpecifiedDay();
|
|
|
if (specifiedDayStr == null || specifiedDayStr.isEmpty()) {
|
|
|
throw new IllegalArgumentException("有效天数不能为空");
|
|
|
}
|