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

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.content.domain.BizHomeBanner;

/**
 * 首页 Banner Mapper
 */
public interface BizHomeBannerMapper
{
    BizHomeBanner selectById(@Param("bannerId") Long bannerId);

    List<BizHomeBanner> selectList(BizHomeBanner query);

    List<BizHomeBanner> selectEnabledForApp(@Param("limit") int limit);

    int countByName(@Param("bannerName") String bannerName, @Param("excludeId") Long excludeId);

    int insert(BizHomeBanner row);

    int update(BizHomeBanner row);

    int updateSortNo(@Param("bannerId") Long bannerId, @Param("sortNo") Integer sortNo,
            @Param("updateBy") String updateBy);

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