干燥机配套车间生产管理系统/云平台服务端
zhuguifei
2024-11-29 339515558253d776769dc2e2560bbb4a0450c989
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
package org.jeecg.modules.system.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.system.vo.DictModel;
import org.jeecg.common.system.vo.DictQuery;
import org.jeecg.modules.system.entity.SysDict;
import org.jeecg.modules.system.entity.SysDictItem;
import org.jeecg.modules.system.model.TreeSelectModel;
import org.jeecg.modules.system.vo.lowapp.SysDictVo;
 
import java.util.List;
import java.util.Map;
 
/**
 * <p>
 * 字典表 服务类
 * </p>
 *
 * @Author zhangweijian
 * @since 2018-12-28
 */
public interface ISysDictService extends IService<SysDict> {
 
    /**
     * 通过字典code获取字典数据
     * @param code
     * @return
     */
    public List<DictModel> queryDictItemsByCode(String code);
 
    /**
     * 查询有效的数据字典项
     * @param code
     * @return
     */
    List<DictModel> queryEnableDictItemsByCode(String code);
 
    /**
     * 通过多个字典code获取字典数据
     *
     * @param dictCodeList
     * @return key = 字典code,value=对应的字典选项
     */
    Map<String, List<DictModel>> queryDictItemsByCodeList(List<String> dictCodeList);
 
    /**
     * 登录加载系统字典
     * @return
     */
    public Map<String,List<DictModel>> queryAllDictItems();
 
    /**
     * 查通过查询指定table的 text code 获取字典
     * @param table
     * @param text
     * @param code
     * @return
     */
    @Deprecated
    List<DictModel> queryTableDictItemsByCode(String table, String text, String code);
 
    /**
     * 通过查询指定table的 text code 获取字典(指定查询条件)
     * @param table
     * @param text
     * @param code
     * @param filterSql
     * @return
     */
    @Deprecated
    public List<DictModel> queryTableDictItemsByCodeAndFilter(String table, String text, String code, String filterSql);
 
    /**
     * 通过字典code及字典项的value获取字典文本
     * @param code
     * @param key
     * @return
     */
    public String queryDictTextByKey(String code, String key);
 
    /**
     * 可通过多个字典code查询翻译文本
     * @param dictCodeList 多个字典code
     * @param keys 数据列表
     * @return
     */
    Map<String, List<DictModel>> queryManyDictByKeys(List<String> dictCodeList, List<String> keys);
 
    /**
     * 通过查询指定table的 text code key 获取字典值
     * @param table
     * @param text
     * @param code
     * @param key
     * @return
     */
    @Deprecated
    String queryTableDictTextByKey(String table, String text, String code, String key);
 
    /**
     * 通过查询指定table的 text code key 获取字典值,可批量查询
     *
     * @param table
     * @param text
     * @param code
     * @param keys
     * @return
     */
    List<DictModel> queryTableDictTextByKeys(String table, String text, String code, List<String> keys);
 
    /**
     * 通过查询指定table的 text code key 获取字典值,包含value
     * @param table 表名
     * @param text
     * @param code
     * @param keys
     * @return
     */
    @Deprecated
    List<String> queryTableDictByKeys(String table, String text, String code, String keys);
 
    /**
     * 通过查询指定table的 text code key 获取字典值,包含value
     * @param table
     * @param text
     * @param code
     * @param keys
     * @param delNotExist
     * @return
     */
    @Deprecated
    List<String> queryTableDictByKeys(String table, String text, String code, String keys,boolean delNotExist);
 
    /**
     * 根据字典类型删除关联表中其对应的数据
     *
     * @param sysDict
     * @return
     */
    boolean deleteByDictId(SysDict sysDict);
 
    /**
     * 添加一对多
     * @param sysDict
     * @param sysDictItemList
     * @return Integer
     */
    public Integer saveMain(SysDict sysDict, List<SysDictItem> sysDictItemList);
 
    /**
     * 查询所有部门 作为字典信息 id -->value,departName -->text
     * @return
     */
    public List<DictModel> queryAllDepartBackDictModel();
 
    /**
     * 查询所有用户  作为字典信息 username -->value,realname -->text
     * @return
     */
    public List<DictModel> queryAllUserBackDictModel();
 
//    /**
//     * 通过关键字查询字典表
//     * @param table
//     * @param text
//     * @param code
//     * @param keyword
//     * @return
//     */
//    @Deprecated
//    public List<DictModel> queryTableDictItems(String table, String text, String code,String keyword);
 
    /**
     * 查询字典表数据 只查询前10条
     * @param table
     * @param text
     * @param code
     * @param keyword
     * @param condition
     * @param pageSize 每页条数
     * @return
     */
    @Deprecated
    public List<DictModel> queryLittleTableDictItems(String table, String text, String code, String condition, String keyword, int pageSize);
 
    /**
     * 查询字典表所有数据
     * @param table
     * @param text
     * @param code
     * @param condition
     * @param keyword
     * @return
     */
    @Deprecated
    public List<DictModel> queryAllTableDictItems(String table, String text, String code, String condition, String keyword);
    /**
      * 根据表名、显示字段名、存储字段名 查询树
     * @param table
     * @param text
     * @param code
     * @param pidField
     * @param pid
     * @param hasChildField
     * @param query
     * @return
     */
    @Deprecated
    List<TreeSelectModel> queryTreeList(Map<String, String> query,String table, String text, String code, String pidField,String pid,String hasChildField,int converIsLeafVal);
 
    /**
     * 真实删除
     * @param id
     */
    public void deleteOneDictPhysically(String id);
 
    /**
     * 修改delFlag
     * @param delFlag
     * @param id
     */
    public void updateDictDelFlag(int delFlag,String id);
 
    /**
     * 查询被逻辑删除的数据
     * @return
     */
    public List<SysDict> queryDeleteList();
 
    /**
     * 分页查询
     * @param query
     * @param pageSize
     * @param pageNo
     * @return
     */
    @Deprecated
    public List<DictModel> queryDictTablePageList(DictQuery query,int pageSize, int pageNo);
 
    /**
     * 获取字典数据
     * @param dictCode 字典code
     * @param dictCode 表名,文本字段,code字段  | 举例:sys_user,realname,id
     * @return
     */
    List<DictModel> getDictItems(String dictCode);
 
    /**
     * 【JSearchSelectTag下拉搜索组件专用接口】
     * 大数据量的字典表 走异步加载  即前端输入内容过滤数据
     *
     * @param dictCode 字典code格式:table,text,code
     * @param keyword
     * @param pageSize 每页条数
     * @return
     */
    List<DictModel> loadDict(String dictCode, String keyword, Integer pageSize);
 
    /**
     * 根据应用id获取字典列表和详情
     * @param lowAppId
     * @return
     */
    List<SysDictVo> getDictListByLowAppId(String lowAppId);
 
    /**
     * 创建字典
     * @param sysDictVo
     */
    void addDictByLowAppId(SysDictVo sysDictVo);
 
    /**
     * 编辑字典
     * @param sysDictVo
     */
    void editDictByLowAppId(SysDictVo sysDictVo);
}