ny
23 小时以前 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
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
package jnpf.base.service;
 
import jnpf.base.ActionResult;
import jnpf.base.entity.ModuleEntity;
import jnpf.base.model.module.*;
import jnpf.base.vo.DownloadVO;
import jnpf.exception.DataException;
 
import java.util.List;
import java.util.Map;
 
/**
 * 系统功能
 *
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司
 * @date 2019年9月27日 上午9:18
 */
public interface ModuleService extends SuperService<ModuleEntity> {
    /**
     * 列表
     *
     * @return ignore
     */
    List<ModuleEntity> getList(MenuListModel param);
 
    /**
     * 创建
     *
     * @param entity 实体对象
     */
    void create(ModuleEntity entity);
 
    /**
     * 更新
     *
     * @param id     主键值
     * @param entity 实体对象
     * @return ignore
     */
    boolean update(String id, ModuleEntity entity);
 
    /**
     * 删除
     *
     * @param entity 实体对象
     */
    void delete(ModuleEntity entity);
 
    /**
     * 信息
     *
     * @param id 主键值
     * @return ignore
     */
    ModuleEntity getInfo(String id);
 
    /**
     * 列表
     *
     * @param filterFlowWork
     * @param moduleAuthorize
     * @param moduleUrlAddressAuthorize
     * @return ignore
     */
    List<ModuleEntity> getList(boolean filterFlowWork, List<String> moduleAuthorize, List<String> moduleUrlAddressAuthorize);
 
    /**
     * 列表
     *
     * @return ignore
     */
    List<ModuleEntity> getList();
 
    /**
     * 租户菜单列表
     *
     * @return ignore
     */
    List<ModuleEntity> getListTenant();
 
    /**
     * 通过id获取子菜单
     *
     * @param id 主键
     * @return ignore
     */
    List<ModuleEntity> getListByParentId(String id);
 
    /**
     * 信息
     *
     * @param id 主键值
     * @return ignore
     */
    ModuleEntity getInfo(String id, String systemId);
 
    /**
     * 信息
     *
     * @param id 主键值
     * @return ignore
     */
    ModuleEntity getInfo(String id, String systemId, String parentId);
 
    /**
     * 验证名称
     *
     * @param entity   ignore
     * @param category 分类
     * @param systemId 分类
     * @return ignore
     */
    boolean isExistByFullName(ModuleEntity entity, String category, String systemId);
 
    /**
     * 验证编码
     *
     * @param entity   实体
     * @param category 分类
     * @param systemId 分类
     * @return ignore
     */
    boolean isExistByEnCode(ModuleEntity entity, String category, String systemId);
 
    /**
     * 路由地址判重
     *
     * @param entity   实体
     * @param category 分类
     * @param systemId 分类
     * @return ignore
     */
    boolean isExistByAddress(ModuleEntity entity, String category, String systemId);
 
    /**
     * 删除
     *
     * @param systemId 实体对象
     */
    void deleteBySystemId(String systemId);
 
    /**
     * 导出数据
     *
     * @param id 主键
     * @return DownloadVO ignore
     */
    DownloadVO exportData(String id);
 
    /**
     * 导入数据
     *
     * @param exportModel 导出模型
     * @param type
     * @return ignore
     * @throws DataException ignore
     */
    ActionResult importData(ModuleExportModel exportModel, Integer type) throws DataException;
 
    /**
     * 功能设计发布功能自动创建app pc菜单
     *
     * @return
     */
    List<ModuleEntity> getModuleList(String visualId);
 
    /**
     * 通过系统id获取菜单
     *
     * @param ids
     * @param moduleAuthorize
     * @param moduleUrlAddressAuthorize
     * @return
     */
    List<ModuleEntity> getModuleBySystemIds(List<String> ids, List<String> moduleAuthorize, List<String> moduleUrlAddressAuthorize, Integer type);
 
    List<ModuleEntity> getModuleByIds(List<String> moduleIds);
 
    /**
     * 通过ids获取系统菜单
     *
     * @param enCodeList
     * @return
     */
    List<ModuleEntity> getListByEnCode(List<String> enCodeList);
 
    /**
     * @param mark
     * @param id
     * @param moduleAuthorize
     * @param moduleUrlAddressAuthorize
     * @return
     */
    List<ModuleEntity> findModuleAdmin(int mark, String id, List<String> moduleAuthorize, List<String> moduleUrlAddressAuthorize);
 
    void getParentModule(List<ModuleEntity> data, Map<String, ModuleEntity> moduleEntityMap);
 
    /**
     * 通过urlAddressList找id
     *
     * @param ids
     * @param urlAddressList
     * @return
     */
    List<ModuleEntity> getListByUrlAddress(List<String> ids, List<String> urlAddressList);
 
    /**
     * 功能发布app pc菜单名称列表
     *
     * @return
     */
    ModuleNameVO getModuleNameList(String visualId);
 
    /**
     * 获取表单关联的菜单数据列表
     *
     * @param page
     * @return ignore
     */
    List<ModuleSelectorVo> getFormMenuList(ModulePagination page);
 
    /**
     * 获取应用菜单列表
     *
     * @param type      3代表表单
     * @param webType   页面类型(1、纯表单,2、表单加列表,4、数据视图)
     * @param categorys 菜单类型(web,app)
     * @return
     */
    List<MenuSelectAllVO> getSystemMenu(Integer type, List<Integer> webType, List<String> categorys);
 
    /**
     * 根据参数查询菜单分页数据
     *
     * @param pagination
     * @return
     */
    List<ModuleSelectorVo> getPageList(ModulePagination pagination);
 
    void setAutoEnCode(ModuleEntity entity);
}