同步触发 1
This commit is contained in:
parent
f7ec556cd3
commit
20f8a640f1
|
|
@ -109,12 +109,12 @@ public class ShopBranchServiceImpl implements ShopBranchService {
|
||||||
branchConfig.setIsEnableConsSync(YesNoEnum.YES.value());
|
branchConfig.setIsEnableConsSync(YesNoEnum.YES.value());
|
||||||
branchConfig.setIsEnableVipSync(YesNoEnum.YES.value());
|
branchConfig.setIsEnableVipSync(YesNoEnum.YES.value());
|
||||||
shopConfigMapper.update(branchConfig);
|
shopConfigMapper.update(branchConfig);
|
||||||
ThreadUtil.execAsync(() -> {
|
// ThreadUtil.execAsync(() -> {
|
||||||
log.info("开始同步,店铺id:{},分店id:{} 操作人Id:{}", shopId, branchShop.getId(), StpKit.USER.getLoginIdAsLong());
|
log.info("开始同步,店铺id:{},分店id:{} 操作人Id:{}", shopId, branchShop.getId(), StpKit.USER.getLoginIdAsLong());
|
||||||
// 同步商品和耗材
|
// 同步商品和耗材
|
||||||
shopSyncService.sync(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());
|
log.info("同步结束,店铺id:{},分店id:{} 操作人Id:{}", shopId, branchShop.getId(), StpKit.USER.getLoginIdAsLong());
|
||||||
});
|
// });
|
||||||
ThreadUtil.execAsync(() -> {
|
ThreadUtil.execAsync(() -> {
|
||||||
// 同步会员信息
|
// 同步会员信息
|
||||||
shopUserSyncService.syncMergeShopUser(shopId, branchShop.getId());
|
shopUserSyncService.syncMergeShopUser(shopId, branchShop.getId());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue