多店铺需求
This commit is contained in:
parent
ad42265c34
commit
91d67f6de2
|
|
@ -256,8 +256,9 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
|
|||
String shopType = shopInfo.getShopType();
|
||||
Long mainId = shopInfo.getMainId();
|
||||
Integer isHeadShop = shopInfo.getIsHeadShop();
|
||||
// 原来是单店,现在不是单店,那么就允许修改,否则不允许修改
|
||||
if (ShopTypeEnum.ONLY.equals(shopType) && !ShopTypeEnum.ONLY.getValue().equals(shopInfoEditDTO.getShopType())) {
|
||||
if (shopType.equals(shopInfoEditDTO.getShopType())) {
|
||||
// 原来是单店,现在不是单店,那么就允许修改,否则不允许修改
|
||||
} else if (ShopTypeEnum.ONLY.getValue().equals(shopType) && !ShopTypeEnum.ONLY.getValue().equals(shopInfoEditDTO.getShopType())) {
|
||||
if (shopInfoEditDTO.getIsHeadShop() == null) {
|
||||
throw new CzgException("加盟店/连锁店请选择是否主店");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue