源店铺不是主店铺或源店铺是单店 报错问题
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user