package com.slodon.b2b2c.dao.read.seller;

import com.slodon.b2b2c.core.database.BaseReadMapper;
import com.slodon.b2b2c.seller.example.StoreCertificateListExample;
import com.slodon.b2b2c.seller.pojo.StoreCertificateList;
import com.slodon.b2b2c.seller.pojo.StoreProfileList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StoreCertificateListReadMapper extends BaseReadMapper<StoreCertificateList, StoreCertificateListExample> {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table store_certificate_list
     *
     * @mbg.generated Tue Sep 27 21:24:12 CST 2022
     */
//    long countByExample(StoreCertificateListExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table store_certificate_list
     *
     * @mbg.generated Tue Sep 27 21:24:12 CST 2022
     */
    List<StoreCertificateList> selectByExample(StoreCertificateListExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table store_certificate_list
     *
     * @mbg.generated Tue Sep 27 21:24:12 CST 2022
     */
    StoreCertificateList selectByPrimaryKey(Long id);


    /**
     * 店铺荣誉资质分页总条数
     *
     * @param webSite
     * @param honorName
     * @param storeId
     * @return
     */
    Integer storeCertificateListPageCount(
            @Param("webSite") String webSite,
            @Param("nameLike") String honorName,
            @Param("storeId") Long storeId);

    /**
     * 店铺荣誉资质列表
     *
     * @param webSite
     * @param honorName
     * @param startRow
     * @param size
     * @return
     */
    List<StoreCertificateList> getStoreCertificateListByPage(
            @Param("webSite") String webSite,
            @Param("nameLike") String honorName,
            @Param("startRow") Integer startRow,
            @Param("size") Integer size,
            @Param("storeId") Long storeId);

}
