配置迁移到表

This commit is contained in:
2026-05-30 22:03:52 +08:00
parent 1b596e10a7
commit bf685417e7
7 changed files with 194 additions and 12 deletions

View File

@@ -118,12 +118,13 @@ public class LbGoodsController {
@Operation(
summary = "从 hxrd 第三方同步货品",
description =
"分页调用 GET /api/order/goods每页 limit=20自动计算 S/T/N 签名),"
+ "解析 data.list 后 upsert 到 lb_goods需配置 hxr.admin.goods-api-token、goods-api-app-str"
+ "token 可选,传入时替代配置中的 goods-api-token")
"分页调用 GET /api/order/goods自动计算 S/T/N 签名),"
+ "解析 data.list 后 upsert 到 lb_goods"
+ "token、URL、appStr 等从 lb_third_integration_config 按 tenantId 读取;"
+ "token 可选,传入时覆盖库中 goodsApiToken")
public ResponseEntity<Map<String, Object>> syncFromHxr(
@Parameter(description = "租户 id", required = true) @RequestParam String tenantId,
@Parameter(description = "hxrd 接口请求头 token未传时使用 hxr.admin.goods-api-token")
@Parameter(description = "hxrd 接口请求头 token未传时使用 lb_third_integration_config 中的 goodsApiToken")
@RequestParam(required = false)
String token) {
Map<String, Object> result = lbGoodsService.syncFromHxrGoods(tenantId, token);