From a1321eaca1f8732d25e889140260eebe751b053b Mon Sep 17 00:00:00 2001 From: tangqian Date: Thu, 1 Jun 2023 19:06:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/shop/service/banner/BannerServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) 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); // θΏ”ε›ž