package com.gxwebsoft.oa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.oa.entity.Customer;
import com.gxwebsoft.oa.param.CustomerParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户管理记录表Mapper
 *
 * @author WebSoft
 * @since 2022-11-16 11:16:14
 */
public interface CustomerMapper extends BaseMapper<Customer> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<Customer>
     */
    List<Customer> selectPageRel(@Param("page") IPage<Customer> page,
                             @Param("param") CustomerParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<Customer> selectListRel(@Param("param") CustomerParam param);

}
