diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/banner/BannerServiceImpl.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/banner/BannerServiceImpl.java index 88654d228..852ed9bd5 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/banner/BannerServiceImpl.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/banner/BannerServiceImpl.java @@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.shop.service.banner; import cn.iocoder.yudao.framework.common.enums.Constants; import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder; import cn.iocoder.yudao.module.shop.controller.admin.banner.vo.BannerCreateReqVO; import cn.iocoder.yudao.module.shop.controller.admin.banner.vo.BannerPageReqVO; import cn.iocoder.yudao.module.shop.controller.admin.banner.vo.BannerUpdateReqVO; @@ -41,6 +42,7 @@ public class BannerServiceImpl implements BannerService { throw exception(BANNER_NUM_FIVE); } // 插ε…₯ + createReqVO.setTenantId(TenantContextHolder.getTenantId()); BannerDO banner = BannerConvert.INSTANCE.convert(createReqVO); bannerMapper.insert(banner); // θΏ”ε›ž