package jnpf.base.service; import jnpf.base.ActionResult; import jnpf.base.entity.DictionaryDataEntity; import jnpf.base.model.dictionarytype.DictionaryExportModel; import jnpf.base.vo.DownloadVO; import jnpf.exception.DataException; import java.util.List; /** * 字典数据 * * @author JNPF开发平台组 * @version V3.1.0 * @copyright 引迈信息技术有限公司 * @date 2019年9月27日 上午9:18 */ public interface DictionaryDataService extends SuperService { /** * 列表 * * @param dictionaryTypeId 字段分类id * @param enable 是否只看有效 * @return ignore */ List getList(String dictionaryTypeId, Boolean enable); /** * 列表 * * @param dictionaryTypeId 类别主键 * @return ignore */ List getList(String dictionaryTypeId); /** * 列表 * * @param dictionaryTypeId 类别主键(在线开发数据转换) * @return ignore */ List getDicList(String dictionaryTypeId); /** * 列表 * * @param dictionaryTypeId 类别主键(在线开发数据转换) * @return ignore */ List geDicList(String dictionaryTypeId); /** * 列表 * * @param parentId 父级id * @return ignore */ Boolean isExistSubset(String parentId); /** * 信息 * * @param id 主键值 * @return ignore */ DictionaryDataEntity getInfo(String id); /** * 代码生成器数据字典转换 * @param value encode 或者 id * @param dictionaryTypeId 类别 * @return */ DictionaryDataEntity getSwapInfo(String value,String dictionaryTypeId); /** * 验证名称 * * @param dictionaryTypeId 类别主键 * @param fullName 名称 * @param id 主键值 * @return ignore */ boolean isExistByFullName(String dictionaryTypeId, String fullName, String id); /** * 验证编码 * * @param dictionaryTypeId 类别主键 * @param enCode 编码 * @param id 主键值 * @return ignore */ boolean isExistByEnCode(String dictionaryTypeId, String enCode, String id); /** * 删除 * * @param entity 实体对象 */ void delete(DictionaryDataEntity entity); /** * 创建 * * @param entity 实体对象 */ void create(DictionaryDataEntity entity); /** * 更新 * * @param id 主键值 * @param entity 实体对象 * @return ignore */ boolean update(String id, DictionaryDataEntity entity); /** * 上移 * * @param id 主键值 * @return ignore */ boolean first(String id); /** * 下移 * * @param id 主键值 * @return ignore */ boolean next(String id); /** * 获取名称 * * @param id 主键id集合 * @return ignore */ List getDictionName(List id); /** * 导出数据 * * @param id 主键 * @return DownloadVO */ DownloadVO exportData(String id); /** * 导入数据 * * @param exportModel ignore * @param type 类型 * @return ignore * @throws DataException ignore */ ActionResult importData(DictionaryExportModel exportModel, Integer type) throws DataException; /** * 根据字典分类获取 字典信息列表 * @param typeCode * @return */ List getListByTypeDataCode(String typeCode); /** * 获取启用字典列表 * @param typeCode * @return */ List getByTypeCodeEnable(String typeCode); }