多店铺需求

This commit is contained in:
Tankaikai 2025-04-09 11:04:02 +08:00
parent fb5f44a20d
commit 88d54c17f6
1 changed files with 3 additions and 3 deletions

View File

@ -255,13 +255,13 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
Integer isHeadShop = shopInfo.getIsHeadShop();
// 禁止加盟店/连锁店修改为单店
if (!shopType.equals(shopInfoEditDTO.getShopType())) {
throw new CzgException("禁止修改店铺类型");
shopInfoEditDTO.setShopType(shopType);
}
if (!isHeadShop.equals(shopInfoEditDTO.getIsHeadShop())) {
throw new CzgException("禁止修改是否主店");
shopInfoEditDTO.setIsHeadShop(isHeadShop);
}
if (mainId != null && !mainId.equals(shopInfoEditDTO.getMainId())) {
throw new CzgException("禁止重新选择店铺设为主店");
shopInfoEditDTO.setMainId(mainId);
}
if (shopInfoEditDTO.getActivateCode() != null) {
activateShop(shopInfo, shopInfoEditDTO.getActivateCode());