package com.clx.performance.mapper.linewarn;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.clx.performance.model.linewarn.LineWarnInfo;
import com.clx.performance.param.pc.linewarn.PageLineWarnInfoParam;
import com.clx.performance.sqlProvider.linewarn.LineWarnInfoSqlProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

@Mapper
public interface LineWarnInfoMapper extends BaseMapper<LineWarnInfo> {
    String TABLE = "line_warn_config";

    /**
     * @see LineWarnInfoSqlProvider#pageByParam(Page, PageLineWarnInfoParam)
     */
    @SelectProvider(type = LineWarnInfoSqlProvider.class, method = "pageByParam")
    IPage<LineWarnInfo> pageByParam(@Param("page") Page page, @Param("param") PageLineWarnInfoParam param);
}