public class DeptServiceImpl extends ETreeService<Dept> implements DeptService
dao| 构造器和说明 |
|---|
DeptServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDept(Dept dept)
添加机构(部门)
|
Dept |
createRootDept()
创建默认部门
|
Dept |
findById(String id)
按主键ID检索
|
List<Dept> |
getAllDepts()
返回全部机构(部门),按path排序
|
List<Dept> |
getAllDepts(String pid)
返回指定机构(部门)的所有子机构(部门),包括无限层级的间接子机构(部门),但不包含机构(部门)本身
|
List<Dept> |
getDepts(String ids)
返回多个机构(部门)信息
|
List<Dept> |
getDepts(String ids,
String orderby)
返回多个机构(部门)信息,并指定排序方式
|
Dept |
getLastDept(String pid)
返回指定机构(部门)的最后一个子机构(部门)
|
Dept |
getRootDept()
返回根机构(部门)
|
List<Dept> |
getSubDepts()
返回第一层子机构(部门)列表
|
List<Dept> |
getSubDepts(String pid)
返回指定机构(部门)的子机构(部门)列表,仅包括一层的直接子机构(部门)
|
int |
imports(String pid,
File file)
机构(部门)批量导入
|
void |
modifyDept(Dept dept)
修改机构(部门)
|
void |
removeDepts(String ids)
删除机构(部门)
|
void |
sort(String pid,
String opt,
String ids)
对机构(部门)进行调整顺序
|
getByIds, getLast, getLast, getLast, getNext, getPerv, sortable, dbo, deleteByCodes, deleteById, deleteByIda, deleteByIds, disable, disable, disableByIda, disableByIds, enable, enable, enableByIda, enableByIds, findByCode, findByCodea, findByCodes, findByDomain, findByDomainSingle, findByIda, findByIds, getConfigName, paginate, paginate, 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, parseRecordsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitable, deleteByCodes, deleteById, deleteByIda, deleteByIds, disable, disable, disableByIda, disableByIds, enable, enable, enableByIda, enableByIds, findByCode, findByCodea, findByCodes, findByDomain, findByDomainSingle, findByIda, findByIds, paginate, paginate, 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> getAllDepts()
DeptService返回全部机构(部门),按path排序
getAllDepts 在接口中 DeptServicepublic List<Dept> getAllDepts(String pid)
DeptService返回指定机构(部门)的所有子机构(部门),包括无限层级的间接子机构(部门),但不包含机构(部门)本身
getAllDepts 在接口中 DeptServicepublic List<Dept> getSubDepts()
DeptService返回第一层子机构(部门)列表
getSubDepts 在接口中 DeptServicepublic List<Dept> getSubDepts(String pid)
DeptService返回指定机构(部门)的子机构(部门)列表,仅包括一层的直接子机构(部门)
getSubDepts 在接口中 DeptServicepublic List<Dept> getDepts(String ids)
DeptService返回多个机构(部门)信息
getDepts 在接口中 DeptServiceids - 用逗号间隔的机构(部门)IDpublic List<Dept> getDepts(String ids, String orderby)
DeptService返回多个机构(部门)信息,并指定排序方式
getDepts 在接口中 DeptServiceorderby - ASC / DESCpublic void addDept(Dept dept)
DeptService添加机构(部门)
addDept 在接口中 DeptServicepublic void modifyDept(Dept dept)
DeptService修改机构(部门)
modifyDept 在接口中 DeptServicepublic void removeDepts(String ids)
DeptService删除机构(部门)
removeDepts 在接口中 DeptServiceids - 用逗号间隔的机构(部门)IDpublic Dept getLastDept(String pid)
DeptService返回指定机构(部门)的最后一个子机构(部门)
getLastDept 在接口中 DeptServicepublic void sort(String pid, String opt, String ids)
DeptService对机构(部门)进行调整顺序
sort 在接口中 DeptServicesort 在类中 ETreeService<Dept>pid - 要调整顺序的上级机构(部门)IDopt - 调整方式:up(向上),down(向下)ids - 要调整顺序的机构ID,用逗号间隔public int imports(String pid, File file)
DeptService机构(部门)批量导入
imports 在接口中 DeptServicepid - 上级机构(部门)IDfile - 导入文件Copyright © 2020. All rights reserved.