Skip to content

Commit

Permalink
发布商品-校验平台分类
Browse files Browse the repository at this point in the history
  • Loading branch information
yxf committed Aug 3, 2022
1 parent 6adbc7a commit 6fb9417
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ private void checkSaveOrUpdateInfo(SpuDTO spuDTO) {
if (!Objects.equals(Constant.PLATFORM_SHOP_ID, AuthUserContext.get().getTenantId()) && Objects.isNull(spuDTO.getShopCategoryId())) {
throw new Mall4cloudException("店铺分类不能为空");
}
if (Objects.isNull(spuDTO.getCategoryId())) {
throw new Mall4cloudException("平台分类不能为空");
}
if (Objects.isNull(spuDTO.getSeq())) {
spuDTO.setSeq(0);
}
Expand Down

1 comment on commit 6fb9417

@vercel
Copy link

@vercel vercel bot commented on 6fb9417 Aug 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mall4cloud – ./

mall4cloud.vercel.app
mall4cloud-git-master-zjgsdxs.vercel.app
mall4cloud-zjgsdxs.vercel.app

Please sign in to comment.