接口 Y9DepartmentService
-
- 所有已知实现类:
Y9DepartmentServiceImpl
public interface Y9DepartmentService- 作者:
- dingzhaojun, qinman, mengjuhua
- Date:
- 2022/2/10
-
-
方法概要
-
-
-
方法详细资料
-
changeDisable
Y9Department changeDisable(String id)
禁用/启用部门(级联子部门)- 参数:
id- 部门id- 返回:
Y9Department
-
delete
void delete(String id)
根据主键id删除部门实例- 参数:
id- 部门id
-
existsById
boolean existsById(String id)
根据id判断部门是否存在- 参数:
id- 部门id- 返回:
- boolean
-
findById
Optional<Y9Department> findById(String id)
根据id查找部门- 参数:
id- 部门id- 返回:
Optional<Y9Department>部门对象 或 null
-
getById
Y9Department getById(String id)
根据主键id获取部门实例- 参数:
id- 部门id- 返回:
- OrgDepartment
- 抛出:
net.risesoft.y9.exception.Y9NotFoundException- id 对应的记录不存在的情况
-
list
List<Y9Department> list()
查询部门- 返回:
List<Y9Department>
-
list
List<Y9Department> list(List<String> ids)
-
listBureau
List<Y9Department> listBureau(String organizationId, Boolean disabled)
获取组织机构下所有的委办局- 参数:
organizationId- 组织机构iddisabled- 是否禁用- 返回:
List<Y9Department>
-
listBureauByNameLike
List<Y9Department> listBureauByNameLike(String name, Boolean disabled)
根据名称查询委办局列表- 参数:
name- 部门名disabled- 是否禁用- 返回:
List<Y9Department>- 从以下版本开始:
- 9.6.6
-
listByDn
List<Y9Department> listByDn(String dn, Boolean disabled)
根据dn查询部门列表- 参数:
dn- dndisabled- 是否禁用- 返回:
List<Y9Department>
-
listByNameLike
List<Y9Department> listByNameLike(String name, Boolean disabled)
根据名称查询- 参数:
name- 部门名disabled- 是否禁用- 返回:
List<Y9Department>
-
listByParentId
List<Y9Department> listByParentId(String parentId, Boolean disabled)
根据父节点id,获取本层级的部门列表- 参数:
parentId- 父节点iddisabled- 是否禁用- 返回:
List<Y9Department>
-
listDepartmentPropOrgUnits
List<Y9OrgBase> listDepartmentPropOrgUnits(String deptId, Integer category, Boolean disabled)
组织节点(人员或岗位)列表- 参数:
deptId- 部门IDcategory- 部门属性类型disabled- 是否禁用- 返回:
List<Y9OrgBase>
-
listRecursivelyByParentId
List<Y9Department> listRecursivelyByParentId(String orgBaseId, Boolean disabled)
获得部门树- 参数:
orgBaseId- :机构节点唯一标识(可能是机构id,也可能是部门id)disabled- 是否禁用- 返回:
List<Y9Department>
-
move
Y9Department move(String deptId, String parentId)
移动部门到新的节点- 参数:
deptId- 部门idparentId- 新父节点id- 返回:
Y9Department
-
saveOrder
List<Y9Department> saveOrder(List<String> deptIds)
保存新的部门排序- 参数:
deptIds- 部门id数组- 返回:
List<Y9Department>
-
saveOrUpdate
Y9Department saveOrUpdate(Y9Department dept)
保存或更新 新增或修改此部门实例的信息- 参数:
dept- 部门对象- 返回:
Y9Department
-
saveProperties
Y9Department saveProperties(String id, String properties)
保存或者更新部门扩展信息- 参数:
id- 部门唯一标识properties- 扩展属性- 返回:
Y9Department
-
setDepartmentPropOrgUnits
void setDepartmentPropOrgUnits(String deptId, Integer category, List<String> orgBaseIds)
设置部门属性组织节点- 参数:
deptId- 部门IDcategory- 部门属性类型orgBaseIds- 组织节点ID
-
updateTabIndex
Y9Department updateTabIndex(String id, int tabIndex)
更新部门排列序号- 参数:
id- 部门唯一标识tabIndex- 排列序号- 返回:
Y9Department
-
-