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.ResumesPush;
import com.sqx.modules.resumes.entity.ViewResumes;
import com.sqx.modules.resumes.vo.ViewResumesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


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

    IPage<ViewResumes> selectResumesByCompanyId(Page<ViewResumes> page, Long companyId);

    int getUseCount(@Param("companyId") Long companyId);

    IPage<ViewResumesVo> getViewResumesList(@Param("pages") Page<ViewResumesVo> pages, @Param("companyId") Long companyId);
}
