package com.zcloud.service.system; import com.zcloud.entity.Page; import com.zcloud.entity.PageData; import com.zcloud.entity.system.Dictionaries; import java.util.List; /** * 说明:数据字典服务接口 * 作者:luoxiaobao * 官网:www.qdkjchina.com */ public interface DictionariesService { /** * 获取所有数据并填充每条数据的子级列表(递归处理) * @param MENU_ID * @return * @throws Exception */ public List listAllDict(String parentId) throws Exception; /**列表 * @param page * @throws Exception */ public List list(Page page)throws Exception; /**通过id获取数据 * @param pd * @throws Exception */ public PageData findById(PageData pd)throws Exception; /**通过id获取数据 * @param pd * @throws Exception */ public PageData findByName(PageData pd)throws Exception; /**通过编码获取数据 * @param pd * @throws Exception */ public PageData findByBianma(PageData pd)throws Exception; /**新增 * @param pd * @throws Exception */ public void save(PageData pd)throws Exception; /**修改 * @param pd * @throws Exception */ public void edit(PageData pd)throws Exception; /** * 通过ID获取其子级列表 * @param parentId * @return * @throws Exception */ public List listSubDictByParentId(String parentId) throws Exception; /** * 通过ID获取其子级列表 * @param pd * @return * @throws Exception */ public List listSubDictByParent(PageData pd) throws Exception; /** * 通过ID获取其子级列表(学习考试课件相关) * @param pd * @return * @throws Exception */ List listSubDictByParentIdAndCourseware(PageData pd) throws Exception; /** * 获取所有数据并填充每条数据的子级列表(递归处理)用于代码生成器引用数据字典 * @param MENU_ID * @return * @throws Exception */ public List listAllDictToCreateCode(String parentId) throws Exception; public List listAllDictToSelect(String parentId, List zdicPdList) throws Exception ; /**排查表检查是否被占用 * @param pd * @throws Exception */ public PageData findFromTbs(PageData pd)throws Exception; /**删除 * @param pd * @throws Exception */ public void delete(PageData pd)throws Exception; /** * 通过IDS获取列表 * @param dictionariesIds * @return * @throws Exception */ public List listSubDictByIds(String[] dictionariesIds) throws Exception; /**新增(增加在线考试使用人员类别) * @param pd * @throws Exception */ public PageData saveSelf(PageData pd)throws Exception; public PageData saveByZidongxinzeng(PageData pd)throws Exception; /** * 根据 父节点id 获取子节点信息和 子节点包含的子节点数量 * @param parentId * @return * @throws Exception */ public List listSubDictByParentIdAndSunCount(String parentId) throws Exception; /**从下而上查询树(无分支) * @param pd * @throws Exception */ public List getTreeFromBelow(List nextList,PageData pd)throws Exception; /**通过 名字 获取数据 * @param name * @throws Exception */ public PageData findByName(String name ,String PARENT_ID)throws Exception; /** * 获取根节点 * @param id * @return * @throws Exception */ public PageData getRootDicById(String id)throws Exception; public List getTreeById(String id) throws Exception; }