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

import com.slodon.b2b2c.core.database.BaseReadMapper;
import com.slodon.b2b2c.seller.dto.StoreStatisticsDTO;
import com.slodon.b2b2c.seller.example.StoreExample;
import com.slodon.b2b2c.seller.pojo.Store;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StoreReadMapper extends BaseReadMapper<Store, StoreExample> {

    List<StoreStatisticsDTO> getStoreStatisticList(@Param("example") StoreExample example);

    int countCnByExample(@Param("example") StoreExample example);

    List<Store> listCnPageByExample(@Param("example") StoreExample example, @Param("startRow") int startRow, @Param("size") int size);
}