package cn.huge.module.file.dao.mapper;
|
|
import cn.huge.module.file.domain.dto.FileForCatDTO;
|
import cn.huge.module.file.domain.po.FileInfo;
|
import cn.huge.module.file.domain.po.FileRelate;
|
import cn.huge.module.sys.dto.FileInfoBaseDTO;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.data.domain.PageRequest;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* @title: 附件信息表持久层业务处理
|
* @Description 此处仅涉及复杂SQL操作,务必不要在此再次写单表的CRUD操作,因为mybatisPlus已经实现。
|
* @company: hugeinfo
|
* @author: liyj
|
* @time: 2024-08-28 20:06:18
|
* @version 1.0.0
|
*/
|
@Repository
|
public interface FileInfoMapper extends BaseMapper<FileInfo>{
|
|
/**
|
* 更新对象
|
* @param entity 对象
|
*/
|
void updateFileInfo(@Param("entity") FileInfo entity);
|
|
/**
|
* 条件更新对象
|
* @param entity 对象
|
* @param terms 条件
|
*/
|
void updateFileInfoTerms(@Param("entity") FileInfo entity, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 根据编号物理删除
|
* @param id 查询条件集合
|
*/
|
void deleteFileInfo(@Param("id") String id);
|
|
/**
|
* 按条件查询结果集
|
* @param terms 查询条件集合
|
* @return List<FileInfo>
|
*/
|
List<FileInfo> listTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 按条件查询实体总数
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
long countTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 按条件查询实体分页结果集
|
* @param page 分页对象
|
* @param terms 查询条件集合
|
* @return List<FileInfo>
|
*/
|
List<FileInfo> pageTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查看附件组件-分类查询附件
|
* @param terms 查询条件集合
|
* @return List<FileInfo>
|
*/
|
List<FileForCatDTO> listFileByCatTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 根据多个编号查询
|
* @param terms
|
* @return List<FileRelate>
|
*/
|
List<FileInfo> listFile(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 根据多个编号查询
|
* @param terms
|
* @return List<FileRelate>
|
*/
|
List<FileInfo> listFileByType(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 根据条件查询附件
|
* @param terms
|
* @return List<FileInfoBaseDTO>
|
*/
|
List<FileInfoBaseDTO> listFileInfoByTerms(@Param("terms") Map<String, Object> terms);
|
}
|