同步接口增加 token参数

This commit is contained in:
2026-05-28 21:00:51 +08:00
parent 608e5a7adc
commit 246c5a7080
4 changed files with 32 additions and 12 deletions

View File

@@ -244,7 +244,7 @@ public class LbGoodsServiceImpl extends ServiceImpl<LbGoodsMapper, LbGoods> impl
@Override
@Transactional(rollbackFor = Exception.class)
public Map<String, Object> syncFromHxrGoods(String tenantId) {
public Map<String, Object> syncFromHxrGoods(String tenantId, String token) {
Map<String, Object> result = new HashMap<>();
try {
if (tenantId == null || tenantId.trim().isEmpty()) {
@@ -261,7 +261,8 @@ public class LbGoodsServiceImpl extends ServiceImpl<LbGoodsMapper, LbGoods> impl
int page = 1;
int totalSynced = 0;
while (true) {
Optional<HxrLbGoodsSelectResponse> opt = hxrAdminGoodsService.fetchGoodsPage(page);
Optional<HxrLbGoodsSelectResponse> opt =
hxrAdminGoodsService.fetchGoodsPage(page, token);
if (opt.isEmpty()) {
if (page == 1) {
result.put("success", false);