同步触发 1

This commit is contained in:
wangw 2025-04-10 11:13:20 +08:00
parent f7ec556cd3
commit 20f8a640f1
1 changed files with 2 additions and 2 deletions

View File

@ -109,12 +109,12 @@ public class ShopBranchServiceImpl implements ShopBranchService {
branchConfig.setIsEnableConsSync(YesNoEnum.YES.value());
branchConfig.setIsEnableVipSync(YesNoEnum.YES.value());
shopConfigMapper.update(branchConfig);
ThreadUtil.execAsync(() -> {
// ThreadUtil.execAsync(() -> {
log.info("开始同步店铺id{}分店id{} 操作人Id:{}", shopId, branchShop.getId(), StpKit.USER.getLoginIdAsLong());
// 同步商品和耗材
shopSyncService.sync(shopId, branchShop.getId(), StpKit.USER.getLoginIdAsLong());
log.info("同步结束店铺id{}分店id{} 操作人Id:{}", shopId, branchShop.getId(), StpKit.USER.getLoginIdAsLong());
});
// });
ThreadUtil.execAsync(() -> {
// 同步会员信息
shopUserSyncService.syncMergeShopUser(shopId, branchShop.getId());