package com.gxwebsoft.credit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.credit.entity.CreditCustomer;
import com.gxwebsoft.credit.param.CreditCustomerParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户Mapper
 *
 * @author 科技小王子
 * @since 2025-12-21 21:20:58
 */
public interface CreditCustomerMapper extends BaseMapper<CreditCustomer> {

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

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

}
