This commit is contained in:
zhangchenbiao
2024-04-18 14:51:26 +08:00
parent d41d121c4c
commit 2b3131e5da
2 changed files with 4 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ public class ShopServiceImpl implements ShopService {
public Integer deleteShop(DeleteShopRequest request) {
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(request.getShopId());
ShopStageInfoDO shopSubStageInfo = shopStageInfoDAO.getShopSubStageInfo(shopInfo.getId(), ShopSubStageEnum.SHOP_STAGE_3);
if(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_9.getShopSubStageStatus().equals(shopSubStageInfo.getShopSubStageStatus())){
if(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_33.getShopSubStageStatus().equals(shopSubStageInfo.getShopSubStageStatus())){
throw new ServiceException(ErrorCodeEnum.NOT_ALLOW_OPERATE);
}
if(Objects.nonNull(shopInfo.getPointId())){