店铺激活

This commit is contained in:
Tankaikai
2025-04-12 10:45:45 +08:00
parent 4b9587bae5
commit 69ba9ec48c

View File

@@ -256,7 +256,7 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
String shopType = shopInfo.getShopType();
Long mainId = shopInfo.getMainId();
Integer isHeadShop = shopInfo.getIsHeadShop();
if (shopType.equals(shopInfoEditDTO.getShopType())) {
if (StrUtil.isEmpty(shopInfoEditDTO.getShopType()) || shopType.equals(shopInfoEditDTO.getShopType())) {
// 原来是单店,现在不是单店,那么就允许修改,否则不允许修改
} else if (ShopTypeEnum.ONLY.getValue().equals(shopType) && !ShopTypeEnum.ONLY.getValue().equals(shopInfoEditDTO.getShopType())) {
if (shopInfoEditDTO.getIsHeadShop() == null) {