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