多店铺需求
This commit is contained in:
parent
fb5f44a20d
commit
88d54c17f6
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue