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