| 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); | 
| } |