接口 SysOwnershipRepository
- 所有超级接口:
cn.herodotus.engine.data.core.repository.BaseRepository<SysOwnership,,String> org.springframework.data.repository.CrudRepository<SysOwnership,,String> org.springframework.data.jpa.repository.JpaRepository<SysOwnership,,String> org.springframework.data.jpa.repository.JpaSpecificationExecutor<SysOwnership>,org.springframework.data.repository.ListCrudRepository<SysOwnership,,String> org.springframework.data.repository.ListPagingAndSortingRepository<SysOwnership,,String> org.springframework.data.repository.PagingAndSortingRepository<SysOwnership,,String> org.springframework.data.repository.query.QueryByExampleExecutor<SysOwnership>,org.springframework.data.repository.Repository<SysOwnership,String>
public interface SysOwnershipRepository
extends cn.herodotus.engine.data.core.repository.BaseRepository<SysOwnership,String>
Description: 人事归属Repository
- 作者:
- : gengwei.zheng
- Date:
- : 2021/7/15 16:28
-
方法概要
修饰符和类型方法说明voiddeleteByDepartmentId(String departmentId) 根据单位ID删除人事归属voiddeleteByEmployeeId(String employeeId) 根据单位ID删除人事归属voiddeleteByOrganizationId(String organizationId) 根据单位ID删除人事归属voiddeleteByOrganizationIdAndDepartmentIdAndEmployeeId(String organizationId, String departmentId, String employeeId) 删除人事归属从接口继承的方法 cn.herodotus.engine.data.core.repository.BaseRepository
count, count, deleteById, findAll, findAll, findAll, findAll, findAll, findAll, findById, findOne从接口继承的方法 org.springframework.data.repository.CrudRepository
delete, deleteAll, deleteAll, deleteAllById, existsById, save从接口继承的方法 org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush从接口继承的方法 org.springframework.data.jpa.repository.JpaSpecificationExecutor
delete, exists, findBy从接口继承的方法 org.springframework.data.repository.ListCrudRepository
findAllById, saveAll从接口继承的方法 org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
方法详细资料
-
deleteByOrganizationId
@Transactional(rollbackFor=cn.herodotus.engine.assistant.core.exception.transaction.TransactionalRollbackException.class) @Modifying @Query("delete from SysOwnership o where o.organizationId = :organizationId") void deleteByOrganizationId(String organizationId) 根据单位ID删除人事归属从操作的完整性上应该包含该操作,但是这个操作风险很大,会删除较多内容
- 参数:
organizationId- 单位ID
-
deleteByDepartmentId
@Transactional(rollbackFor=cn.herodotus.engine.assistant.core.exception.transaction.TransactionalRollbackException.class) @Modifying @Query("delete from SysOwnership o where o.departmentId = :departmentId") void deleteByDepartmentId(String departmentId) 根据单位ID删除人事归属从操作的完整性上应该包含该操作,但是这个操作风险很大,会删除较多内容
- 参数:
departmentId- 部门ID
-
deleteByEmployeeId
@Transactional(rollbackFor=cn.herodotus.engine.assistant.core.exception.transaction.TransactionalRollbackException.class) @Modifying @Query("delete from SysOwnership o where o.employeeId = :employeeId") void deleteByEmployeeId(String employeeId) 根据单位ID删除人事归属从操作的完整性上应该包含该操作,但是这个操作风险很大,会删除较多内容
- 参数:
employeeId- 人员ID
-
deleteByOrganizationIdAndDepartmentIdAndEmployeeId
@Transactional(rollbackFor=cn.herodotus.engine.assistant.core.exception.transaction.TransactionalRollbackException.class) @Modifying @Query("delete from SysOwnership o where o.organizationId = :organizationId and o.departmentId = :departmentId and o.employeeId = :employeeId") void deleteByOrganizationIdAndDepartmentIdAndEmployeeId(String organizationId, String departmentId, String employeeId) 删除人事归属- 参数:
organizationId- 单位IDdepartmentId- 部门IDemployeeId- 人员ID
-