wzy
2022-08-14 b141df9bf9764db8567efebed48006e12ab1f657
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
48
49
package com.xzx.gc.role.mapper;
 
 
import com.xzx.gc.entity.CoreDict;
import com.xzx.gc.role.model.CoreDictQueryModel;
import com.xzx.gc.util.GcMapper;
import com.xzx.gc.util.SqlResource;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;
 
import java.util.List;
import java.util.Map;
 
/**
 * 字典DAO接口
 */
@SqlResource("role.coreDict")
public interface CoreDictMapper extends GcMapper<CoreDict> {
 
    /**
     * 查询某个类型下的字典集合
     *
     * @param type 字典类型
     * @return
     */
    List<CoreDict> findAllList(@Param("type") String type);
 
    /**
     * 查询字段类型列表
     *
     * @param delFlag 删除标记
     * @return
     */
    List<Map<String, String>> findTypeList(int delFlag);
 
    /**
     * 根据父节点Id查询子节点数据
     *
     * @param id 父节点id
     * @return
     */
    List<CoreDict> findChildByParent(Long id);
 
    int bathDelByValue(List<String> values);
 
    String findNameByType(String value);
 
    List<CoreDict> queryByCondition(CoreDictQueryModel query);
}