package com.sqx.modules.myCollection.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.modules.app.vo.ResumesBrowseVo;
import com.sqx.modules.app.vo.UserPostPushBrowseVo;
import com.sqx.modules.myCollection.entity.MyCollection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sqx.modules.resumes.entity.PostPush;
import com.sqx.modules.resumes.entity.Resumes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author www.javacoder.top
 * @since 2023-01-17
 */
@Mapper
public interface MyCollectionDao extends BaseMapper<MyCollection> {

    IPage<UserPostPushBrowseVo> getMyCollectionList(@Param("pages") Page<UserPostPushBrowseVo> pages, @Param("collection") MyCollection collection, @Param("postPush") PostPush postPush, @Param("industry") String[] industry, @Param("education") String[] education, @Param("experience") String[] experience, @Param("companyPeople") String[] companyPeople, @Param("salaryRange") String[] salaryRange);

    IPage<ResumesBrowseVo> getCompanyCollectionList(@Param("pages") Page<ResumesBrowseVo> pages, @Param("collection") MyCollection collection, @Param("resumes") Resumes resumes, @Param("resumesCompensation") String[] resumesCompensation, @Param("resumesEducation") String[] resumesEducation, @Param("resumesWorkExperience") String[] resumesWorkExperience, @Param("industryName") String[] industryName);

    IPage<ResumesBrowseVo> selectPage(Page<ResumesBrowseVo> pages, QueryWrapper<MyCollection> queryWrapper);
}
