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.LineWarnConfig;
import com.clx.performance.param.pc.linewarn.PageLineWarnConfigParam;
import com.clx.performance.sqlProvider.linewarn.LineWarnConfigSqlProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

@Mapper
public interface LineWarnConfigMapper extends BaseMapper<LineWarnConfig> {
    String TABLE = "line_warn_config";

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