package com.sqx.modules.resumes.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.modules.resumes.entity.Company;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fang
 * @date 2022/8/3
 */
@Mapper
public interface CompanyDao extends BaseMapper<Company> {

    IPage<Company> selectCompanyList(Page<Company> page, String startTime, String endTime, String companyName, String companyPhone, String userName, Integer status);

    IPage<Company> selectCompanyListByMember(Page<Company> page);

    Company selectCompanyByCompanyId(@Param("companyId") Long companyId);

    List<Company> exportExcelCompanyList(String startTime, String endTime, String companyName, String companyPhone, String userName, Integer status);
}
