|
|
@@ -15,6 +15,7 @@ import com.cyksj.model.request.CorpCouponSendReq;
|
|
|
import com.cyksj.model.request.CouponActiveReq;
|
|
|
import com.cyksj.model.request.CouponDistributeReq;
|
|
|
import com.cyksj.service.corp.msg.CorpEventActionService;
|
|
|
+import com.cyksj.service.coupon.CouponFontService;
|
|
|
import com.cyksj.service.mange.coupon.CouponCommonService;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -60,6 +61,8 @@ public class CouponCommonServiceImpl implements CouponCommonService {
|
|
|
|
|
|
private final GoodsDonMapper goodsDonMapper;
|
|
|
|
|
|
+ private final CouponFontService couponFontService;
|
|
|
+
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Throwable.class)
|
|
|
public void saveCoupon(Coupon coupon) throws Exception {
|
|
|
@@ -187,6 +190,7 @@ public class CouponCommonServiceImpl implements CouponCommonService {
|
|
|
//领卷中心
|
|
|
couponUser.setChannel(CouponUser.Channel.wxCorp);
|
|
|
couponUser.setStatus(CouponUser.Status.unused);
|
|
|
+ couponFontService.updateCouponUserValidTime(couponId, couponUser);
|
|
|
try {
|
|
|
couponUserMapper.insert(couponUser);
|
|
|
} catch (DuplicateKeyException e) {
|