package com.gxwebsoft.credit.mapper;

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

import java.util.List;

/**
 * 企业Mapper
 *
 * @author 科技小王子
 * @since 2025-12-17 08:28:03
 */
public interface CreditCompanyMapper extends BaseMapper<CreditCompany> {

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

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

}
