|
|
@@ -74,7 +74,7 @@ public class CouponFontServiceImpl implements CouponFontService {
|
|
|
couponUser.setStatus(CouponUser.Status.unused);
|
|
|
couponUser.setCouponActiveId(couponCollectReq.getCouponActiveId());
|
|
|
//优惠券有效时间
|
|
|
- updateCouponUserValidTime(couponActive.getCouponId(), couponUser);
|
|
|
+ this.updateCouponUserValidTime(couponActive.getCouponId(), couponUser);
|
|
|
try {
|
|
|
couponUserMapper.insert(couponUser);
|
|
|
} catch (DuplicateKeyException e) {
|
|
|
@@ -103,7 +103,7 @@ public class CouponFontServiceImpl implements CouponFontService {
|
|
|
couponUser.setStatus(CouponUser.Status.unused);
|
|
|
couponUser.setRecommendId(couponCollectReq.getCouponRecommendId());
|
|
|
//优惠券有效时间
|
|
|
- updateCouponUserValidTime(couponCollectReq.getCouponId(), couponUser);
|
|
|
+ this.updateCouponUserValidTime(couponCollectReq.getCouponId(), couponUser);
|
|
|
try {
|
|
|
couponUserMapper.insert(couponUser);
|
|
|
} catch (DuplicateKeyException e) {
|
|
|
@@ -133,7 +133,7 @@ public class CouponFontServiceImpl implements CouponFontService {
|
|
|
couponUser.setStatus(CouponUser.Status.unused);
|
|
|
couponUser.setRecommendId(data.getRecommendId());
|
|
|
//优惠券有效时间
|
|
|
- updateCouponUserValidTime(data.getCouponId(), couponUser);
|
|
|
+ this.updateCouponUserValidTime(data.getCouponId(), couponUser);
|
|
|
try {
|
|
|
couponUserMapper.insert(couponUser);
|
|
|
} catch (DuplicateKeyException e) {
|
|
|
@@ -253,6 +253,7 @@ public class CouponFontServiceImpl implements CouponFontService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public void updateCouponUserValidTime(Long couponId, CouponUser couponUser) {
|
|
|
Coupon coupon = couponMapper.selectById(couponId);
|
|
|
if (coupon.getIsValidTime()) {
|