tj
2025-06-05 2d549a04870d1315868a7cf19952b64e8071e711
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.cloudroam.mapper;
 
import com.cloudroam.model.FileDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
/**
 * @author 
 * 文件mapper接口
 */
@Repository
public interface FileMapper extends BaseMapper<FileDO> {
 
    /**
     * 根据文件md5查询文件对象
     * @param md5 文件md5
     * @return 文件数据对象
     */
    FileDO selectByMd5(@Param("md5") String md5);
 
    /**
     * 根据文件md5查询文件数量
     * @param md5 文件md5
     * @return 文件数据传输对象
     */
    int selectCountByMd5(@Param("md5") String md5);
}