增加,门店恢复状态,删除门店接口

This commit is contained in:
shuo.wang
2025-03-24 15:35:47 +08:00
parent 3ffcede71a
commit 81a76a8d4b

View File

@@ -174,6 +174,10 @@ public class ShopServiceImpl implements ShopService {
@Override @Override
public List<ShopStageInfoVO> getShopStageInfo(Long shopId, Integer shopStage) { public List<ShopStageInfoVO> getShopStageInfo(Long shopId, Integer shopStage) {
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(shopId);
if (Objects.isNull(shopInfo)){
throw new ServiceException(ErrorCodeEnum.SHOP_ID_NOT_EXIST);
}
if (Objects.nonNull(shopStage)) { if (Objects.nonNull(shopStage)) {
ShopStageEnum shopStageEnum = ShopStageEnum.getShopStageEnum(shopStage); ShopStageEnum shopStageEnum = ShopStageEnum.getShopStageEnum(shopStage);
if (Objects.isNull(shopStageEnum)) { if (Objects.isNull(shopStageEnum)) {