配置迁移到表
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user