|
|
|
@@ -10,6 +10,7 @@ import com.iformall.mapper.*; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.scheduling.annotation.Async; |
|
|
|
import org.springframework.scheduling.annotation.Scheduled; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
|
@@ -46,6 +47,7 @@ public class CouponExpiringSchedule { |
|
|
|
return wxMallMapper.findList(wxMall); |
|
|
|
} |
|
|
|
|
|
|
|
@Async |
|
|
|
@Scheduled(cron = "0 5 0 * * ?") // 每天凌晨00:05 作废过期券,商户禁用券 |
|
|
|
//@Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 |
|
|
|
public void couponExpiringSchedule() { |
|
|
|
@@ -63,6 +65,7 @@ public class CouponExpiringSchedule { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Async |
|
|
|
@Scheduled(cron = "0 10 0 * * ?") // 每天凌晨00:10 下架定向发放 |
|
|
|
//@Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 |
|
|
|
public void couponSendExpiringSchedule() { |
|
|
|
@@ -76,6 +79,7 @@ public class CouponExpiringSchedule { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Async |
|
|
|
@Scheduled(cron = "0 10 0 * * ?") // 每天凌晨00:10 下架主动领取 |
|
|
|
//@Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 |
|
|
|
public void couponChannelExpiringSchedule() { |
|
|
|
@@ -91,12 +95,14 @@ public class CouponExpiringSchedule { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Async |
|
|
|
@Scheduled(cron = "0 15 0 * * ?") // 每天凌晨00:15 下架券广告 |
|
|
|
//@Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 |
|
|
|
public void screenAdExpiringSchedule() { |
|
|
|
wxScreenAdMapper.offScreeAdByCouponChannelStatus(); |
|
|
|
} |
|
|
|
|
|
|
|
@Async |
|
|
|
@Scheduled(cron = "0 0,1,2,3 0/1 * * ?") // 每小时 0, 1 ,2 ,3 分钟(整点)执行//限时抢购 |
|
|
|
//@Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 |
|
|
|
public void couponChannel2ExpiringSchedule() { |
|
|
|
@@ -110,6 +116,7 @@ public class CouponExpiringSchedule { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Async |
|
|
|
@Scheduled(cron = "0 20 0 * * ?") // 每天凌晨00:20 下架游戏 |
|
|
|
//@Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 |
|
|
|
public void gameExpiringSchedule() { |
|
|
|
|