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
45
46
47
package com.gkhy.assess.system.mapper;
 
import com.gkhy.assess.system.domain.SysDictType;
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-01 15:37:51
 */
@Mapper
public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
    /**
     * 根据条件获取字典类型列表
     * @param dictType
     * @return
     */
    List<SysDictType> dictTypeList(SysDictType dictType);
 
    /**
     * 根据id获取字典类型
     * @param dictId
     * @return
     */
    SysDictType getDictTypeById(Long dictId);
 
    /**
     *校验字典类型称是否唯一
     * @param dictType
     * @return
     */
    SysDictType checkDictTypeUnique(@Param("dictType") String dictType, @Param("name") String name);
 
    /**
     * 根据类型获取数据字典
     * @param dictType
     * @return
     */
    SysDictType getDictTypeByType(String dictType);
}