parent
a04f3c69b3
commit
c3b47e05c8
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue