切换店铺统计 √

下单选择会员 √
注册会员 √
完善手机号 √
会员流水信息同步 √
This commit is contained in:
Tankaikai 2025-04-10 18:05:11 +08:00
parent a04f3c69b3
commit c3b47e05c8
1 changed files with 4 additions and 2 deletions

View File

@ -303,7 +303,10 @@ public class ProductController {
public CzgResult<Void> sync() {
long shopId = StpKit.USER.getShopId(0L);
long sysUserId = StpKit.USER.getLoginIdAsLong();
Long headShopId = StpKit.USER.getHeadShopId();
long headShopId = StpKit.USER.getHeadShopId();
if(shopId == headShopId){
throw new CzgException("不存在主店分店关系,无需同步");
}
ThreadUtil.execAsync(() -> {
shopSyncService.sync(headShopId, shopId, sysUserId);
});
@ -327,5 +330,4 @@ public class ProductController {
shopSyncService.syncConsProBySourceShop(shopId, id, sysUserId);
});
}
}