类 Y9DepartmentServiceImpl
- java.lang.Object
-
- net.risesoft.service.org.impl.Y9DepartmentServiceImpl
-
- 所有已实现的接口:
Y9DepartmentService
@Transactional(value="rsTenantTransactionManager", readOnly=true) @Service public class Y9DepartmentServiceImpl extends Object implements Y9DepartmentService- 作者:
- dingzhaojun, qinman, mengjuhua
- Date:
- 2022/2/10
-
-
构造器概要
构造器 构造器 说明 Y9DepartmentServiceImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Y9DepartmentchangeDisable(String id)禁用/启用部门(级联子部门)voiddelete(String id)根据主键id删除部门实例booleanexistsById(String id)根据id判断部门是否存在Optional<Y9Department>findById(String id)根据id查找部门Y9DepartmentgetById(String id)根据主键id获取部门实例List<Y9Department>list()查询部门List<Y9Department>list(List<String> ids)List<Y9Department>listBureau(String organizationId, Boolean disabled)获取组织机构下所有的委办局List<Y9Department>listBureauByNameLike(String name, Boolean disabled)根据名称查询委办局列表List<Y9Department>listByDn(String dn, Boolean disabled)根据dn查询部门列表List<Y9Department>listByNameLike(String name, Boolean disabled)根据名称查询List<Y9Department>listByParentId(String parentId, Boolean disabled)根据父节点id,获取本层级的部门列表List<Y9OrgBase>listDepartmentPropOrgUnits(String deptId, Integer category, Boolean disabled)组织节点(人员或岗位)列表List<Y9Department>listRecursivelyByParentId(String orgUnitId, Boolean disabled)获得部门树Y9Departmentmove(String deptId, String parentId)移动部门到新的节点voidonParentDepartmentDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Department> event)voidonParentDepartmentUpdated(net.risesoft.y9.pubsub.event.Y9EntityUpdatedEvent<Y9Department> event)voidonParentOrganizationDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Organization> event)voidonParentOrganizationUpdated(net.risesoft.y9.pubsub.event.Y9EntityUpdatedEvent<Y9Organization> event)voidremoveByParentId(String parentId)voidremoveDepartmentProp(String deptId, Integer category, String orgBaseId)List<Y9Department>saveOrder(List<String> deptIds)保存新的部门排序Y9DepartmentsaveOrUpdate(Y9Department dept)保存或更新 新增或修改此部门实例的信息Y9DepartmentsaveProperties(String id, String properties)保存或者更新部门扩展信息voidsetDepartmentPropOrgUnits(String deptId, Integer category, List<String> orgBaseIds)设置部门属性组织节点Y9DepartmentupdateTabIndex(String id, int tabIndex)更新部门排列序号
-
-
-
方法详细资料
-
changeDisable
@Transactional(readOnly=false) public Y9Department changeDisable(String id)
从接口复制的说明:Y9DepartmentService禁用/启用部门(级联子部门)- 指定者:
changeDisable在接口中Y9DepartmentService- 参数:
id- 部门id- 返回:
Y9Department
-
delete
@Transactional(readOnly=false) public void delete(String id)
从接口复制的说明:Y9DepartmentService根据主键id删除部门实例- 指定者:
delete在接口中Y9DepartmentService- 参数:
id- 部门id
-
existsById
public boolean existsById(String id)
从接口复制的说明:Y9DepartmentService根据id判断部门是否存在- 指定者:
existsById在接口中Y9DepartmentService- 参数:
id- 部门id- 返回:
- boolean
-
findById
public Optional<Y9Department> findById(String id)
从接口复制的说明:Y9DepartmentService根据id查找部门- 指定者:
findById在接口中Y9DepartmentService- 参数:
id- 部门id- 返回:
Optional<Y9Department>部门对象 或 null
-
getById
public Y9Department getById(String id)
从接口复制的说明:Y9DepartmentService根据主键id获取部门实例- 指定者:
getById在接口中Y9DepartmentService- 参数:
id- 部门id- 返回:
- OrgDepartment
-
list
public List<Y9Department> list()
从接口复制的说明:Y9DepartmentService查询部门- 指定者:
list在接口中Y9DepartmentService- 返回:
List<Y9Department>
-
list
public List<Y9Department> list(List<String> ids)
- 指定者:
list在接口中Y9DepartmentService
-
listBureau
public List<Y9Department> listBureau(String organizationId, Boolean disabled)
从接口复制的说明:Y9DepartmentService获取组织机构下所有的委办局- 指定者:
listBureau在接口中Y9DepartmentService- 参数:
organizationId- 组织机构iddisabled- 是否禁用- 返回:
List<Y9Department>
-
listBureauByNameLike
public List<Y9Department> listBureauByNameLike(String name, Boolean disabled)
从接口复制的说明:Y9DepartmentService根据名称查询委办局列表- 指定者:
listBureauByNameLike在接口中Y9DepartmentService- 参数:
name- 部门名disabled- 是否禁用- 返回:
List<Y9Department>
-
listByDn
public List<Y9Department> listByDn(String dn, Boolean disabled)
从接口复制的说明:Y9DepartmentService根据dn查询部门列表- 指定者:
listByDn在接口中Y9DepartmentService- 参数:
dn- dndisabled- 是否禁用- 返回:
List<Y9Department>
-
listByNameLike
public List<Y9Department> listByNameLike(String name, Boolean disabled)
从接口复制的说明:Y9DepartmentService根据名称查询- 指定者:
listByNameLike在接口中Y9DepartmentService- 参数:
name- 部门名disabled- 是否禁用- 返回:
List<Y9Department>
-
listByParentId
public List<Y9Department> listByParentId(String parentId, Boolean disabled)
从接口复制的说明:Y9DepartmentService根据父节点id,获取本层级的部门列表- 指定者:
listByParentId在接口中Y9DepartmentService- 参数:
parentId- 父节点iddisabled- 是否禁用- 返回:
List<Y9Department>
-
listDepartmentPropOrgUnits
public List<Y9OrgBase> listDepartmentPropOrgUnits(String deptId, Integer category, Boolean disabled)
从接口复制的说明:Y9DepartmentService组织节点(人员或岗位)列表- 指定者:
listDepartmentPropOrgUnits在接口中Y9DepartmentService- 参数:
deptId- 部门IDcategory- 部门属性类型disabled- 是否禁用- 返回:
List<Y9OrgBase>
-
listRecursivelyByParentId
public List<Y9Department> listRecursivelyByParentId(String orgUnitId, Boolean disabled)
从接口复制的说明:Y9DepartmentService获得部门树- 指定者:
listRecursivelyByParentId在接口中Y9DepartmentService- 参数:
orgUnitId- :机构节点唯一标识(可能是机构id,也可能是部门id)disabled- 是否禁用- 返回:
List<Y9Department>
-
move
@Transactional(readOnly=false) public Y9Department move(String deptId, String parentId)
从接口复制的说明:Y9DepartmentService移动部门到新的节点- 指定者:
move在接口中Y9DepartmentService- 参数:
deptId- 部门idparentId- 新父节点id- 返回:
Y9Department
-
onParentDepartmentDeleted
@EventListener @Transactional(readOnly=false) public void onParentDepartmentDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Department> event)
-
onParentDepartmentUpdated
@EventListener @Transactional(readOnly=false) public void onParentDepartmentUpdated(net.risesoft.y9.pubsub.event.Y9EntityUpdatedEvent<Y9Department> event)
-
onParentOrganizationDeleted
@EventListener @Transactional(readOnly=false) public void onParentOrganizationDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Organization> event)
-
onParentOrganizationUpdated
@EventListener @Transactional(readOnly=false) public void onParentOrganizationUpdated(net.risesoft.y9.pubsub.event.Y9EntityUpdatedEvent<Y9Organization> event)
-
removeByParentId
@Transactional(readOnly=false) public void removeByParentId(String parentId)
-
removeDepartmentProp
@Transactional(readOnly=false) public void removeDepartmentProp(String deptId, Integer category, String orgBaseId)
- 指定者:
removeDepartmentProp在接口中Y9DepartmentService
-
saveOrder
@Transactional(readOnly=false) public List<Y9Department> saveOrder(List<String> deptIds)
从接口复制的说明:Y9DepartmentService保存新的部门排序- 指定者:
saveOrder在接口中Y9DepartmentService- 参数:
deptIds- 部门id数组- 返回:
List<Y9Department>
-
saveOrUpdate
@Transactional(readOnly=false) public Y9Department saveOrUpdate(Y9Department dept)
从接口复制的说明:Y9DepartmentService保存或更新 新增或修改此部门实例的信息- 指定者:
saveOrUpdate在接口中Y9DepartmentService- 参数:
dept- 部门对象- 返回:
Y9Department
-
saveProperties
@Transactional(readOnly=false) public Y9Department saveProperties(String id, String properties)
从接口复制的说明:Y9DepartmentService保存或者更新部门扩展信息- 指定者:
saveProperties在接口中Y9DepartmentService- 参数:
id- 部门唯一标识properties- 扩展属性- 返回:
Y9Department
-
setDepartmentPropOrgUnits
@Transactional(readOnly=false) public void setDepartmentPropOrgUnits(String deptId, Integer category, List<String> orgBaseIds)
从接口复制的说明:Y9DepartmentService设置部门属性组织节点- 指定者:
setDepartmentPropOrgUnits在接口中Y9DepartmentService- 参数:
deptId- 部门IDcategory- 部门属性类型orgBaseIds- 组织节点ID
-
updateTabIndex
@Transactional(readOnly=false) public Y9Department updateTabIndex(String id, int tabIndex)
从接口复制的说明:Y9DepartmentService更新部门排列序号- 指定者:
updateTabIndex在接口中Y9DepartmentService- 参数:
id- 部门唯一标识tabIndex- 排列序号- 返回:
Y9Department
-
-