package com.gxwebsoft.oa.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.oa.entity.Customer;
import com.gxwebsoft.oa.param.CustomerParam;

import java.util.List;

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

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<Customer>
     */
    PageResult<Customer> pageRel(CustomerParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<Customer>
     */
    List<Customer> listRel(CustomerParam param);

    /**
     * 根据id查询
     *
     * @param customerId 客户ID
     * @return Customer
     */
    Customer getByIdRel(Integer customerId);

    Customer getByCustomerName(String customerName);
}
