package com.ruoyi.oa.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.oa.domain.EmployeeFiles;
import com.ruoyi.oa.domain.OaSalary;
import com.ruoyi.oa.domain.vo.EmployeeFilesVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.oa.domain.vo.FileUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 文件档案管理Mapper接口
 *
 * @author hdka
 * @date 2025-03-08
 */
public interface EmployeeFilesMapper extends BaseMapperPlus<EmployeeFilesMapper, EmployeeFiles, EmployeeFilesVo> {

    Page<FileUser> selectFileUserVoPage(Page<Object> build,@Param(Constants.WRAPPER) Wrapper<SysUser> userLambdaQueryWrapper);

    void deleteByUserId(Long userId);

    List<EmployeeFilesVo> selectVoListPlus(@Param(Constants.WRAPPER) LambdaQueryWrapper<EmployeeFiles> employeeFilesLambdaQueryWrapper);
}
