源店铺不是主店铺或源店铺是单店 报错问题

This commit is contained in:
2026-04-14 11:19:09 +08:00
parent b547283358
commit 3fd7a74356

View File

@@ -108,7 +108,8 @@ public class ShopSyncServiceImpl implements ShopSyncService {
ShopInfo sourceShop = shopInfoService.getById(sourceShopId);
if (StrUtil.isBlank(sourceShop.getShopType()) || "only".equals(sourceShop.getShopType())
|| sourceShop.getIsHeadShop() == null || sourceShop.getIsHeadShop() != 1) {
throw new CzgException("同步失败,源店铺不是主店铺或源店铺是单店");
log.error("同步失败,源店铺不是主店铺或源店铺是单店");
return null;
}
QueryWrapper queryWrapper = new QueryWrapper();
queryWrapper.select(column(ShopConfig::getId));