package com.artfess.rescue.file.dao;

import com.artfess.rescue.file.model.BizRescueFileCommon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 文件公共信息表 Mapper 接口
 *
 * @author 系统管理员
 * @company 阿特菲斯信息技术有限公司
 * @since 2024-07-04
 */
public interface BizRescueFileCommonDao{

    /**
     * 根据文件类型和id集合查询相关附件
     * @param fileType
     * @param ids
     * @return
     */
    List<BizRescueFileCommon> getFiles( @Param("ids") List<String> ids);

    /**
     * 根据文件类型和id集合查询相关附件
     * @return
     */
    List<BizRescueFileCommon> getSysFiles(@Param("companyId") String companyId);


    /**
     *
     * @param userId
     * @return
     */
    BizRescueFileCommon viewQrCode(@Param("userId")String userId);
}
