ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
package jnpf.base.service;
 
 
import jnpf.base.ActionResult;
import jnpf.base.service.SuperService;
import com.baomidou.mybatisplus.extension.service.IService;
import jnpf.base.entity.DictionaryDataEntity;
import jnpf.base.model.dictionarydata.DictionaryExportModel;
import jnpf.base.vo.DownloadVO;
import jnpf.exception.DataException;
 
import java.util.List;
 
/**
 * 字典数据
 *
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司(https://www.jnpfsoft.com)
 * @date 2019年9月27日 上午9:18
 */
public interface DictionaryDataService extends SuperService<DictionaryDataEntity> {
 
    /**
     * 列表
     *
     * @return
     */
    List<DictionaryDataEntity> getList(String dictionaryTypeId, Boolean enable);
 
    /**
     * 列表
     *
     * @param dictionaryTypeId 类别主键
     * @return
     */
    List<DictionaryDataEntity> getList(String dictionaryTypeId);
 
    /**
     * 列表
     *
     * @param dictionaryTypeId 类别主键(在线开发数据转换)
     * @return ignore
     */
    List<DictionaryDataEntity> getDicList(String dictionaryTypeId);
    /**
     * 列表
     *
     * @param parentId 父级id
     * @return ignore
     */
    Boolean isExistSubset(String parentId);
 
 
    /**
     * 代码生成器数据字典转换
     * @param value encode 或者 id
     * @return
     */
    DictionaryDataEntity getSwapInfo(String value,String parentId);
 
    /**
     * 信息
     *
     * @param id 主键值
     * @return
     */
    DictionaryDataEntity getInfo(String id);
 
    /**
     * 验证名称
     *
     * @param dictionaryTypeId 类别主键
     * @param fullName         名称
     * @param id               主键值
     * @return
     */
    boolean isExistByFullName(String dictionaryTypeId, String fullName, String id);
 
    /**
     * 验证编码
     *
     * @param dictionaryTypeId 类别主键
     * @param enCode           编码
     * @param id               主键值
     * @return
     */
    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
     */
    boolean update(String id, DictionaryDataEntity entity);
 
    /**
     * 上移
     * @param id    主键值
     * @return
     */
    boolean first(String id);
 
    /**
     * 下移
     * @param id    主键值
     * @return
     */
    boolean next(String id);
 
    /**
     * 获取名称
     * @param id
     * @return
     */
    List<DictionaryDataEntity> getDictionName(List<String> id);
 
    /**
     * 导出数据
     * @param   id
     * @return  DownloadVO
     */
    DownloadVO exportData(String id);
 
    /**
     * 导入数据
     * @param exportModel
     * @return
     */
    ActionResult importData(DictionaryExportModel exportModel, Integer type) throws DataException;
 
    List<DictionaryDataEntity> getListByTypeDataCode(String typeCode);
 
    /**
     * 获取启用字典列表
     * @param typeCode
     * @return
     */
    List<DictionaryDataEntity> getByTypeCodeEnable(String typeCode);
}