public class DeptServiceImpl extends ETreeService<Dept> implements DeptService
ETreeService.SORT_DIRdao| 构造器和说明 |
|---|
DeptServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDept(Dept dept)
添加机构(部门)
|
Dept |
createRootDept()
创建默认部门
|
void |
event(Dept data)
添加或修改机构节点
|
void |
eventBatch(EPara paras)
批量修改机构节点
|
List<Dept> |
fillLogicDept(List<Dept> depts)
解析并填充逻辑机构
|
Dept |
findById(String id)
按主键ID检索
|
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, dbo, deleteByCodes, deleteById, deleteByIda, deleteByIds, disable, disable, disableByIda, disableByIds, enable, enable, enableByIda, enableByIds, findByCode, findByCodea, findByCodes, findByDomain, findByDomainSingle, findByIda, findByIds, getConfigName, 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, selectFirst, selectFirst, update$comp, $domain, $logined, $uid, $user, $UUID, append, append, join, parseModel, parseRecordsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitarrange, 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, 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, updatepublic Dept findById(String id)
EModelServicefindById 在接口中 IModelService<Dept>findById 在类中 EModelService<Dept>id - 主键IDpublic Dept createRootDept()
createRootDept 在接口中 DeptServicecomp - public Dept getRootDept()
DeptService返回当前租户的根机构(部门)
getRootDept 在接口中 DeptServicepublic List<Dept> getDeptTree()
DeptService返回当前租户的全部机构树形(默认解析逻辑机构)
getDeptTree 在接口中 DeptServicepublic List<Dept> getDeptTree(String rootId)
DeptService返回从指定机构开始的机构树形(默认解析逻辑机构)
getDeptTree 在接口中 DeptServicerootId - 根机构IDpublic List<Dept> getDeptTree(String rootId, boolean includeLogic)
DeptService返回从指定机构开始的机构树形,指定是否解析逻辑机构
getDeptTree 在接口中 DeptServicerootId - 根机构IDincludeLogic - 是否解析逻辑机构public List<Dept> getSubDepts()
DeptService返回第一层子机构列表
getSubDepts 在接口中 DeptServicepublic List<Dept> getSubDepts(String pid)
DeptService返回指定机构的子机构列表,仅包括一层的直接子机构
getSubDepts 在接口中 DeptServicepid - 机构IDpublic List<Dept> getSubDepts(String pid, String typeCode)
DeptService返回指定机构的子机构列表,仅包括一层的直接子机构
getSubDepts 在接口中 DeptServicepid - 机构IDtypeCode - 机构类型(支持逗号分割的多个类型代码)public Dept getParent(String id)
DeptServicegetParent 在接口中 DeptServiceid - 当前机构IDpublic Dept getParent(String id, String typeCode)
DeptServicegetParent 在接口中 DeptServiceid - 当前机构IDtypeCode - 机构类型(支持逗号分割的多个类型代码)public List<Dept> getChildrens(String typeCode)
DeptServicegetChildrens 在接口中 DeptServicetypeCode - 机构类型(支持逗号分割的多个类型代码)public List<Dept> getChildrens(String typeCode, String rootId)
DeptServicegetChildrens 在接口中 DeptServicetypeCode - 机构类型(支持逗号分割的多个类型代码)rootId - 当前机构IDpublic List<Dept> fillLogicDept(List<Dept> depts)
DeptServicefillLogicDept 在接口中 DeptServicedepts - 原始机构列表public List<Dept> getLogicTo(String id)
DeptServicegetLogicTo 在接口中 DeptServiceid - 逻辑机构IDpublic Dept getLastDept(String pid)
DeptService返回指定机构(部门)的最后一个子机构(部门)
getLastDept 在接口中 DeptServicepid - 当前机构IDpublic void event(Dept data)
DeptService添加或修改机构节点
event 在接口中 DeptServicedata - 机构数据public void eventBatch(EPara paras)
DeptService批量修改机构节点
eventBatch 在接口中 DeptServiceparas - 机构数据public void addDept(Dept dept)
DeptService添加机构(部门)
addDept 在接口中 DeptServicedept - 机构数据public void modifyDept(Dept dept)
DeptService修改机构(部门)
modifyDept 在接口中 DeptServicedept - 机构数据public void removeDepts(String ids)
DeptService删除机构(部门)
removeDepts 在接口中 DeptServiceids - 用逗号间隔的机构(部门)IDpublic void sort(String pid, String opt, String ids)
DeptService对机构(部门)进行调整顺序
sort 在接口中 DeptServicepid - 要调整顺序的上级机构(部门)IDopt - 调整方式:up(向上),down(向下)ids - 要调整顺序的机构ID,用逗号间隔public int imports(String pid, File file)
DeptService机构(部门)批量导入
imports 在接口中 DeptServicepid - 上级机构(部门)IDfile - 导入文件Copyright © 2023. All rights reserved.