多店铺需求
This commit is contained in:
@@ -146,7 +146,9 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
|
|||||||
// 如果店铺类型是单店,是否主店要设为否
|
// 如果店铺类型是单店,是否主店要设为否
|
||||||
if (ShopTypeEnum.ONLY.getValue().equals(shopInfoAddDTO.getShopType())) {
|
if (ShopTypeEnum.ONLY.getValue().equals(shopInfoAddDTO.getShopType())) {
|
||||||
shopInfoAddDTO.setIsHeadShop(YesNoEnum.NO.value());
|
shopInfoAddDTO.setIsHeadShop(YesNoEnum.NO.value());
|
||||||
shopInfoAddDTO.setMainId(null);
|
if(shopInfoAddDTO.getMainId() != null) {
|
||||||
|
throw new CzgException("单店不允许设置主店ID");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (shopInfoAddDTO.getIsHeadShop() == null) {
|
if (shopInfoAddDTO.getIsHeadShop() == null) {
|
||||||
throw new CzgException("加盟店/连锁店请选择是否主店");
|
throw new CzgException("加盟店/连锁店请选择是否主店");
|
||||||
|
|||||||
Reference in New Issue
Block a user