|
@@ -60,22 +60,6 @@ public class CmVipCouponService extends CrudService<CmCouponVipDao, CmVipCoupon>
|
|
Date date = new Date();
|
|
Date date = new Date();
|
|
couponList.forEach(coupon -> {
|
|
couponList.forEach(coupon -> {
|
|
cmCouponService.setCouponStatus(coupon, date);
|
|
cmCouponService.setCouponStatus(coupon, date);
|
|
- if ("1".equals(coupon.getCouponsMode())) {
|
|
|
|
- //兑换码券
|
|
|
|
- Integer num = cmCouponDao.findQuantityRedeemed(coupon.getId());
|
|
|
|
- coupon.setCodeNum(num);
|
|
|
|
- } else {
|
|
|
|
- if (2 == coupon.getCouponType()) {
|
|
|
|
- //用户专享劵
|
|
|
|
- CmCouponClub couponClub = cmCouponDao.findCouponClub(coupon.getId());
|
|
|
|
- if (couponClub == null) {
|
|
|
|
- coupon.setClaimStatus("1");
|
|
|
|
- } else {
|
|
|
|
- coupon.setClaimStatus("2");
|
|
|
|
- }
|
|
|
|
- coupon.setCouponClub(couponClub);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
});
|
|
});
|
|
vipCoupon.setCouponList(couponList);
|
|
vipCoupon.setCouponList(couponList);
|
|
});
|
|
});
|