1
This commit is contained in:
@@ -21,7 +21,7 @@ public class JarvisGoofishProperties {
|
||||
private int pullLookbackHours = 72;
|
||||
|
||||
/** 拉单定时 cron */
|
||||
private String pullCron = "0 0/15 * * * ?";
|
||||
private String pullCron = "0 0/10 * * * ?";
|
||||
|
||||
/** 同步运单 + 自动发货 cron */
|
||||
private String autoShipCron = "0 2/10 * * * ?";
|
||||
@@ -59,11 +59,10 @@ public class JarvisGoofishProperties {
|
||||
private String autoShipOrderStatuses = "12";
|
||||
|
||||
/**
|
||||
* 定时/增量「订单列表」拉单是否仅请求 {@link #autoShipOrderStatuses} 中的状态(通常即待发货)。
|
||||
* 为 true 时可显著减少列表与后续详情拉取次数;其余状态依赖开放平台推送回调刷新。
|
||||
* 全量历史回补若需全状态,可临时设为 false。
|
||||
* 为 true 时定时/增量列表拉单仅按 {@link #autoShipOrderStatuses} 过滤(减少调用量,但会漏掉其它状态)。
|
||||
* 默认 false:按时间窗拉全状态,与本地 upsert 对齐,推送仍可用于更低延迟。
|
||||
*/
|
||||
private boolean pullListOnlyAutoShipStatuses = true;
|
||||
private boolean pullListOnlyAutoShipStatuses = false;
|
||||
|
||||
/**
|
||||
* 未在 erp_open_config 配置 express_code 时,自动发货使用的默认快递公司编码(官方列表中日日顺多为 rrs)。
|
||||
|
||||
@@ -29,7 +29,7 @@ public class GoofishScheduledTasks {
|
||||
@Resource
|
||||
private JarvisGoofishProperties goofishProperties;
|
||||
|
||||
@Scheduled(cron = "${jarvis.goofish-order.pull-cron:0 0/15 * * * ?}")
|
||||
@Scheduled(cron = "${jarvis.goofish-order.pull-cron:0 0/10 * * * ?}")
|
||||
public void scheduledPull() {
|
||||
List<ErpOpenConfig> cfgs = erpOpenConfigService.selectEnabledOrderBySort();
|
||||
if (cfgs == null || cfgs.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user