| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- 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<DictionaryDataEntity> {
- /**
- * 列表
- *
- * @param dictionaryTypeId 字段分类id
- * @param enable 是否只看有效
- * @return ignore
- */
- List<DictionaryDataEntity> getList(String dictionaryTypeId, Boolean enable);
- /**
- * 列表
- *
- * @param dictionaryTypeId 类别主键
- * @return ignore
- */
- List<DictionaryDataEntity> getList(String dictionaryTypeId);
- /**
- * 列表
- *
- * @param dictionaryTypeId 类别主键(在线开发数据转换)
- * @return ignore
- */
- List<DictionaryDataEntity> getDicList(String dictionaryTypeId);
- /**
- * 列表
- *
- * @param dictionaryTypeId 类别主键(在线开发数据转换)
- * @return ignore
- */
- List<DictionaryDataEntity> 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<DictionaryDataEntity> getDictionName(List<String> 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<DictionaryDataEntity> getListByTypeDataCode(String typeCode);
- /**
- * 获取启用字典列表
- * @param typeCode
- * @return
- */
- List<DictionaryDataEntity> getByTypeCodeEnable(String typeCode);
- }
|