| | |
| | | import com.mzl.flower.mapper.partner.PartnerMapper; |
| | | import com.mzl.flower.mapper.payment.OrderMapper; |
| | | import com.mzl.flower.service.coupon.CouponRecordService; |
| | | import com.mzl.flower.service.coupon.CouponTemplateService2; |
| | | import com.mzl.flower.service.flower.FlowerCategoryService; |
| | | import com.mzl.flower.service.flower.FlowerService; |
| | | import com.mzl.flower.service.menber.impl.GrowthValueDealService; |
| | |
| | | |
| | | @Autowired |
| | | private MemberGrowthRecordMapper memberGrowthRecordMapper; |
| | | |
| | | @Autowired |
| | | private CouponTemplateService2 couponTemplateService2; |
| | | |
| | | @Scheduled(cron = "1 0/30 * * * ?") |
| | | public void calculateAvePrice() { |
| | |
| | | } |
| | | |
| | | |
| | | @Scheduled(cron = "0 0/5 * * * ?") |
| | | public void expireActivityCouponTemplateAll() { |
| | | log.info("优惠券模版过期下架开始:" + DateFormatUtils.format(System.currentTimeMillis(), "yyyy-MM-dd HH:mm:ss")); |
| | | |
| | | // 下架有所的过期的优惠券 |
| | | couponTemplateService2.expireActivityCouponTemplateAll(); |
| | | |
| | | log.info("优惠券模版过期下架开始:" + DateFormatUtils.format(System.currentTimeMillis(), "yyyy-MM-dd HH:mm:ss")); |
| | | } |
| | | |
| | | @Scheduled(cron = "0 0/5 * * * ?") |
| | | public void expireCouponRecordAll() { |
| | | log.info("优惠券记录过期开始:" + DateFormatUtils.format(System.currentTimeMillis(), "yyyy-MM-dd HH:mm:ss")); |
| | | |
| | | // 下架有所的过期的优惠券 |
| | | couponRecordService.expireCouponRecordAll(); |
| | | |
| | | log.info("优惠券记录过期开始:" + DateFormatUtils.format(System.currentTimeMillis(), "yyyy-MM-dd HH:mm:ss")); |
| | | } |
| | | |
| | | |
| | | |
| | | } |