|
|
|
@@ -24,7 +24,6 @@ public class CouponExpiringSchedule { |
|
|
|
|
|
|
|
@Scheduled(cron = "0 5 0 * * ?") // 每天凌晨00:05 |
|
|
|
//@Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 |
|
|
|
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class}) |
|
|
|
public void couponExpiringSchedule() { |
|
|
|
wxCouponMapper.offExpiriedCouponByValidDate(); |
|
|
|
} |
|
|
|
@@ -38,7 +37,7 @@ public class CouponExpiringSchedule { |
|
|
|
wxCouponChannelMapper.offExpiriedCouponChannelByCouponStatus(); |
|
|
|
} |
|
|
|
|
|
|
|
@Scheduled(cron = "0 0 0/1 * * ?") // 每小时(整点)执行//限时抢购 |
|
|
|
@Scheduled(cron = "0 0,1,2,3 0/1 * * ?") // 每小时 0, 1 ,2 ,3 分钟(整点)执行//限时抢购 |
|
|
|
//@Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 |
|
|
|
public void couponChannel2ExpiringSchedule() { |
|
|
|
wxCouponChannelMapper.offExpiriedCouponChannel2ByEndTime(); |
|
|
|
|