package com.jkcredit.invoice.service.customer;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jkcredit.invoice.model.entity.customer.CustomerRec;

import java.util.List;

/**
 * 客户信息维护接口
 * @author mumuxigua
 */
public interface CustomerRecService {
    /**
     * 查找所有备案信息
     *
     * @param page
     * @param customerRec
     * @return
     */
    IPage findAllCustomerRec(Page page, CustomerRec customerRec);


    /**
     * 查找所有备案信息(备案预警查询)
     *
     * @param page
     * @param customerRec
     * @return
     */
    IPage findAllCustomerRecWarning(Page page, CustomerRec customerRec);


    /**
     * 客户信息导出
     *
     * @param customerRec
     * @return
     */
    List<CustomerRec> findAllCustomerRecForExport(CustomerRec customerRec);

    /**
     * 未在平台备案成功客户查询
     *
     * @param record
     * @return
     */
    CustomerRec selectByCustomerNameAndCompanyReference(CustomerRec record);

    /**
     * 根据企业编码查询客户信息
     *
     * @param customerRec
     * @return
     */
    CustomerRec selectByCustomerNameAndCompanyNum(CustomerRec customerRec);

    /**
     * 根据企业名称查询客户信息
     *
     * @param customerRec
     * @return
     */
    CustomerRec selectByCustomerNameAndCompanyConcat(CustomerRec customerRec);
    CustomerRec selectByCustomerNameAndCompany(CustomerRec customerRec);
    /**
     * 查询有效的客户备案信息
     *
     * @param
     * @return java.util.List<com.jkcredit.invoice.model.entity.customer.CustomerRec>
     * @throws
     * @createDate 2024/4/4 上午11:23
     * @author mashengyi
     */
    List<CustomerRec> findAllCustomeRecQueryList();
}
