public interface DeptService extends ITreeService<Dept>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDept(Dept dept)
添加机构(部门)
|
Dept |
createRootDept()
创建当前租户的根机构(部门)
|
void |
event(Dept data)
添加或修改机构节点
|
void |
eventBatch(EPara paras)
批量修改机构节点
|
List<Dept> |
fillLogicDept(List<Dept> depts)
解析并填充逻辑机构
|
List<Dept> |
getChildrens(String typeCode)
返回符合typeCode的所有下级机构(不包括本身),自动解析逻辑机构
注意:通过类型代码过滤后的结果将不再保持树形机构
|
List<Dept> |
getChildrens(String typeCode,
String rootId)
返回符合typeCode的所有下级机构(不包括本身),自动解析逻辑机构
注意:通过类型代码过滤后的结果将不再保持树形机构
|
List<Dept> |
getDeptTree()
返回当前租户的全部机构树形(默认解析逻辑机构)
|
List<Dept> |
getDeptTree(String rootId)
返回从指定机构开始的机构树形(默认解析逻辑机构)
|
List<Dept> |
getDeptTree(String rootId,
boolean includeLogic)
返回从指定机构开始的机构树形,指定是否解析逻辑机构
|
Dept |
getLastDept(String pid)
返回指定机构(部门)的最后一个子机构(部门)
|
List<Dept> |
getLogicTo(String id)
返回所有引用该逻辑机构的节点列表
|
Dept |
getParent(String id)
返回父机构
|
Dept |
getParent(String id,
String typeCode)
返回符合typeCode的距离最近的祖先机构(不包括本身)
|
Dept |
getRootDept()
返回当前租户的根机构(部门)
|
List<Dept> |
getSubDepts()
返回第一层子机构列表
|
List<Dept> |
getSubDepts(String pid)
返回指定机构的子机构列表,仅包括一层的直接子机构
|
List<Dept> |
getSubDepts(String pid,
String typeCode)
返回指定机构的子机构列表,仅包括一层的直接子机构
|
int |
imports(String pid,
File file)
机构(部门)批量导入
|
void |
modifyDept(Dept dept)
修改机构(部门)
|
void |
removeDepts(String ids)
删除机构(部门)
|
void |
sort(String pid,
String opt,
String ids)
对机构(部门)进行调整顺序
|
arrange, getByIds, getLast, getLast, getLast, getNext, getPerv, sort, sortable, batchSave, batchUpdate, deleteByCodes, deleteById, deleteByIda, deleteByIds, disable, disable, disableByIda, disableByIds, enable, enable, enableByIda, enableByIds, findByCode, findByCodea, findByCodes, findByDomain, findByDomainSingle, findById, findByIda, findByIds, paginate, paginate, removeRepeat, save, saveOrUpdate, select, select, select, select, select, select, select, select, selectAll, selectAll, selectAllBy, selectAllBy, selectCol, selectCol, selectCol, selectFirst, selectFirst, selectFirst, selectFirst, selectFirst, updateDept createRootDept()
创建当前租户的根机构(部门)
Dept getRootDept()
返回当前租户的根机构(部门)
List<Dept> getDeptTree(String rootId)
返回从指定机构开始的机构树形(默认解析逻辑机构)
rootId - 根机构IDList<Dept> getDeptTree(String rootId, boolean includeLogic)
返回从指定机构开始的机构树形,指定是否解析逻辑机构
rootId - 根机构IDincludeLogic - 是否解析逻辑机构List<Dept> getSubDepts(String pid, String typeCode)
返回指定机构的子机构列表,仅包括一层的直接子机构
pid - 机构IDtypeCode - 机构类型(支持逗号分割的多个类型代码)Dept getParent(String id, String typeCode)
id - 当前机构IDtypeCode - 机构类型(支持逗号分割的多个类型代码)List<Dept> getChildrens(String typeCode)
typeCode - 机构类型(支持逗号分割的多个类型代码)List<Dept> getChildrens(String typeCode, String rootId)
typeCode - 机构类型(支持逗号分割的多个类型代码)rootId - 当前机构IDList<Dept> fillLogicDept(List<Dept> depts)
depts - 原始机构列表void event(Dept data)
添加或修改机构节点
data - 机构数据void eventBatch(EPara paras)
批量修改机构节点
paras - 机构数据void addDept(Dept dept)
添加机构(部门)
dept - 机构数据void modifyDept(Dept dept)
修改机构(部门)
dept - 机构数据void removeDepts(String ids)
删除机构(部门)
ids - 用逗号间隔的机构(部门)IDvoid sort(String pid, String opt, String ids)
对机构(部门)进行调整顺序
pid - 要调整顺序的上级机构(部门)IDopt - 调整方式:up(向上),down(向下)ids - 要调整顺序的机构ID,用逗号间隔Copyright © 2023. All rights reserved.