package com.yzt.airconditionersystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yzt.airconditionersystem.bean.Company;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yzt.airconditionersystem.bean.Project;
import com.yzt.airconditionersystem.enums.CompanyTypeEnum;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author TzZach
* @description 针对表【company】的数据库操作Service
* @createDate 2022-05-07 11:50:06
*/
public interface CompanyService extends IService<Company> {

    /**
     * 根据公司类型获取
     * @param page
     * @param type
     * @return
     */
    public Page<Company> getCompanyPageByType(Page<Company> page, Integer type);

    /**
     * 根据公司类型和运营商id获取
     * @param page
     * @param type
     * @param operatorId
     * @return
     */
    public Page<Company> getCompanyPageByType(Page<Company> page, Integer type, String operatorId);



    /**
     * 通过公司名字、地区、运营商名字查找
     * @param name
     * @param district
     * @param operatorName
     * @return
     */
    List<Company> listByNameAndDistrictAndOperatorName(String name, String district, String operatorName, Integer type);

    /**
     * 通过公司名称、地区、联系人查找
     * @param name
     * @param district
     * @param contact
     * @param type
     * @return
     */
    List<Company> listByNameAndDistrictAndContact(String name, String district, String contact, Integer type);
}
