This commit is contained in:
van
2026-04-23 16:06:33 +08:00
parent 0ff357148b
commit 256b54ffab
3 changed files with 3 additions and 3 deletions

View File

@@ -276,7 +276,7 @@ jarvis:
mq-topic: jarvis-goofish-erp-order mq-topic: jarvis-goofish-erp-order
consumer-group: jarvis-goofish-order-consumer consumer-group: jarvis-goofish-order-consumer
pull-lookback-hours: 72 pull-lookback-hours: 72
pull-cron: "0 0/10 * * * ?" pull-cron: "0 * * * * ?"
auto-ship-cron: "0 2/10 * * * ?" auto-ship-cron: "0 2/10 * * * ?"
# 订单列表:每页条数(最大 100 # 订单列表:每页条数(最大 100
pull-page-size: 100 pull-page-size: 100

View File

@@ -21,7 +21,7 @@ public class JarvisGoofishProperties {
private int pullLookbackHours = 72; private int pullLookbackHours = 72;
/** 拉单定时 cron */ /** 拉单定时 cron */
private String pullCron = "0 0/10 * * * ?"; private String pullCron = "0 * * * * ?";
/** 同步运单 + 自动发货 cron */ /** 同步运单 + 自动发货 cron */
private String autoShipCron = "0 2/10 * * * ?"; private String autoShipCron = "0 2/10 * * * ?";

View File

@@ -29,7 +29,7 @@ public class GoofishScheduledTasks {
@Resource @Resource
private JarvisGoofishProperties goofishProperties; private JarvisGoofishProperties goofishProperties;
@Scheduled(cron = "${jarvis.goofish-order.pull-cron:0 0/10 * * * ?}") @Scheduled(cron = "${jarvis.goofish-order.pull-cron:0 * * * * ?}")
public void scheduledPull() { public void scheduledPull() {
List<ErpOpenConfig> cfgs = erpOpenConfigService.selectEnabledOrderBySort(); List<ErpOpenConfig> cfgs = erpOpenConfigService.selectEnabledOrderBySort();
if (cfgs == null || cfgs.isEmpty()) { if (cfgs == null || cfgs.isEmpty()) {