拉取买家的卖家订单

This commit is contained in:
2026-06-07 08:47:53 +08:00
parent b36b37bd51
commit 2b026cba2c
2 changed files with 162 additions and 65 deletions

View File

@@ -56,6 +56,9 @@ public class LbBuyerShoppingController {
description =
"按 tenantId 从 lb_third_integration_config 读取 login_api_path、buyer_order_list_path 等配置,"
+ "对每个买方手机号模拟登录获取 token再分页调用买方订单列表 API 并解析入库;"
+ "拉取过程中将订单中的卖家手机号缓存到 cacheSellerPhones已拉取过的号码不再缓存"
+ "买方手机号全部处理完成后,仅对尚未拉取过的卖家手机号模拟登录、拉取订单并保存;"
+ "同一请求内重复手机号自动跳过,卖家阶段不再扩展缓存,避免重复拉取与死循环;"
+ "未传 password 时默认密码为 123456")
public ResponseEntity<Map<String, Object>> pullFromThird(
@Parameter(description = "租户 id 与买方手机号列表", required = true)