package com.ruoyi.web.modules.store.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.store.domain.BizShop;
import com.ruoyi.web.modules.store.vo.SellerShopProfileVO;
import com.ruoyi.web.modules.store.vo.ShopListVO;
import com.ruoyi.web.modules.merchant.vo.MerchantShopBriefVO;

/**
 * 店铺 Mapper
 */
public interface BizShopMapper
{
    BizShop selectById(@Param("shopId") Long shopId);

    SellerShopProfileVO selectSellerProfileById(@Param("shopId") Long shopId);

    BizShop selectEarliestByMerchantId(@Param("merchantId") Long merchantId);

    int countByShopIdAndMerchantId(@Param("shopId") Long shopId, @Param("merchantId") Long merchantId);

    List<ShopListVO> selectList(BizShop query);

    List<MerchantShopBriefVO> selectBriefByMerchantId(@Param("merchantId") Long merchantId);

    int countByShopName(@Param("shopName") String shopName, @Param("excludeShopId") Long excludeShopId);

    int insert(BizShop shop);

    int update(BizShop shop);

    int logicDeleteByIds(@Param("ids") List<Long> ids, @Param("updateBy") String updateBy);
}
