fix: 修改部门

pull/12/head
tangqian 2023-06-01 19:06:27 +08:00
parent cf897c2b9c
commit a1321eaca1
1 changed files with 2 additions and 0 deletions

View File

@ -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.enums.Constants;
import cn.iocoder.yudao.framework.common.pojo.PageResult; 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.BannerCreateReqVO;
import cn.iocoder.yudao.module.shop.controller.admin.banner.vo.BannerPageReqVO; import cn.iocoder.yudao.module.shop.controller.admin.banner.vo.BannerPageReqVO;
import cn.iocoder.yudao.module.shop.controller.admin.banner.vo.BannerUpdateReqVO; 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); throw exception(BANNER_NUM_FIVE);
} }
// 插入 // 插入
createReqVO.setTenantId(TenantContextHolder.getTenantId());
BannerDO banner = BannerConvert.INSTANCE.convert(createReqVO); BannerDO banner = BannerConvert.INSTANCE.convert(createReqVO);
bannerMapper.insert(banner); bannerMapper.insert(banner);
// 返回 // 返回