|
@@ -25,7 +25,6 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
-import java.time.LocalDate;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.ZoneOffset;
|
|
import java.time.ZoneOffset;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -97,7 +96,7 @@ public class CouponUseService extends BaseService<CouponUse> {
|
|
|
//优惠券状态
|
|
//优惠券状态
|
|
|
couponUse.setCouponStatus(Constant.couponStatus.YI_SHI_YONG.getName());
|
|
couponUse.setCouponStatus(Constant.couponStatus.YI_SHI_YONG.getName());
|
|
|
//核销日期
|
|
//核销日期
|
|
|
- couponUse.setUseDate(LocalDate.now());
|
|
|
|
|
|
|
+ couponUse.setUseDate(LocalDateTime.now());
|
|
|
//更新
|
|
//更新
|
|
|
couponUseMapper.update(couponUse,
|
|
couponUseMapper.update(couponUse,
|
|
|
new UpdateWrapper<CouponUse>().lambda()
|
|
new UpdateWrapper<CouponUse>().lambda()
|