kongzy
2024-01-29 983bdb5b89932b38d08a11ad1eed6ea89d1597e1
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.gkhy.assess.system.mapper;
 
import com.gkhy.assess.system.domain.SysAttach;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * <p>
 * 系统配置表 Mapper 接口
 * </p>
 *
 * @author kzy
 * @since 2023-11-24 17:08:49
 */
@Mapper
public interface SysAttachMapper extends BaseMapper<SysAttach> {
 
    /**
     * 根据用户id获取附件
     * @param userId
     * @param type
     * @return
     */
    List<SysAttach> getAttachsByUserId(@Param("userId") Long userId, @Param("type") Integer type);
 
    /**
     * 根据用户id删除数据
     * @param userId
     * @param type
     * @return
     */
    int deleteAttachsByUserId(Long userId, Integer type);
 
 
    /**
     * 根据ids批量删除附件
     * @param ids
     * @return
     */
    int deleteAttachsByIds(List<Long> ids);
}