接口 DepartmentHeaderDao

所有超级接口:
org.springframework.data.repository.CrudRepository<DepartmentHeader,Long>, HiverBaseDao<DepartmentHeader,Long>, org.springframework.data.jpa.repository.JpaRepository<DepartmentHeader,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<DepartmentHeader>, org.springframework.data.repository.ListCrudRepository<DepartmentHeader,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<DepartmentHeader,Long>, org.springframework.data.repository.PagingAndSortingRepository<DepartmentHeader,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<DepartmentHeader>, org.springframework.data.repository.Repository<DepartmentHeader,Long>

@Repository public interface DepartmentHeaderDao extends HiverBaseDao<DepartmentHeader,Long>
部门负责人数据处理层

尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负

作者:
Yazhi Li
  • 嵌套类概要

    从接口继承的嵌套类/接口 org.springframework.data.jpa.repository.JpaSpecificationExecutor

    org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T extends Object>
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    deleteByDepartmentId(Long departmentId)
    通过部门id删除
    void
    通过userId删除
    findByDepartmentId(Long departmentId)
    通过部门和负责人类型获取
    findByDepartmentIdAndType(Long departmentId, Integer type)
    通过部门和负责人类型获取
    findByDepartmentIdIn(List<Long> departmentIds)
    通过部门获取
    findByUserIdAndDepartmentId(Long userId, Long departmentId)
    通过部门id和userId类型获取

    从接口继承的方法 org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, 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

    count, delete, exists, findAll, findAll, findAll, findAll, findBy, findOne

    从接口继承的方法 org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    从接口继承的方法 org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    从接口继承的方法 org.springframework.data.repository.PagingAndSortingRepository

    findAll

    从接口继承的方法 org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • 方法详细资料

    • findByDepartmentIdAndType

      List<DepartmentHeader> findByDepartmentIdAndType(Long departmentId, Integer type)
      通过部门和负责人类型获取
    • findByDepartmentIdIn

      List<DepartmentHeader> findByDepartmentIdIn(List<Long> departmentIds)
      通过部门获取
    • deleteByDepartmentId

      @Modifying @Query("delete from DepartmentHeader d where d.departmentId = ?1") void deleteByDepartmentId(Long departmentId)
      通过部门id删除
    • deleteByUserId

      @Modifying @Query("delete from DepartmentHeader d where d.userId = ?1") void deleteByUserId(Long userId)
      通过userId删除
    • findByUserIdAndDepartmentId

      List<DepartmentHeader> findByUserIdAndDepartmentId(Long userId, Long departmentId)
      通过部门id和userId类型获取
    • findByDepartmentId

      List<DepartmentHeader> findByDepartmentId(Long departmentId)
      通过部门和负责人类型获取