This commit is contained in:
van
2026-04-10 00:40:34 +08:00
parent ce3af838bd
commit ede30b5f36
3 changed files with 5 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ import java.util.List;
/**
* 物流信息扫描定时任务
* 每10分钟扫描一次分销标记为F或PDD的订单最近30天获取物流信息并推送结束后处理企微分享链 adhoc 队列
* 每15分钟扫描一次分销标记为F或PDD的订单最近30天获取物流信息并推送结束后处理企微分享链 adhoc 队列
*/
@Component
public class LogisticsScanTask {
@@ -26,10 +26,10 @@ public class LogisticsScanTask {
private ILogisticsService logisticsService;
/**
* 定时任务每10分钟执行一次(与 @Scheduled 中 cron 一致)
* 定时任务每15分钟执行一次(与 @Scheduled 中 cron 一致)
* 只扫描最近30天的订单
*/
@Scheduled(cron = "0 */10 * * * ?")
@Scheduled(cron = "0 */15 * * * ?")
public void scanAndFetchLogistics() {
long t0 = System.currentTimeMillis();
int orderCandidates = 0;