接口 DepartmentDao

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

@Repository public interface DepartmentDao extends HiverBaseDao<Department,Long>
部门数据处理层

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

作者:
Yazhi Li
  • 嵌套类概要

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

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

    修饰符和类型
    方法
    说明
    获得全部部门
    根据父节点获得部门列表
    通过父id获取 升序 数据权限
    通过父id和状态获取 升序
    通过父id获取 升序
    部门名模糊搜索 升序 数据权限
    部门名模糊搜索 升序

    从接口继承的方法 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
  • 方法详细资料

    • findByParentIdOrderBySortOrder

      List<Department> findByParentIdOrderBySortOrder(Long parentId)
      通过父id获取 升序
    • findByParentIdAndIdInOrderBySortOrder

      List<Department> findByParentIdAndIdInOrderBySortOrder(Long parentId, List<Long> departmentIds)
      通过父id获取 升序 数据权限
    • findByParentIdAndStatusOrderBySortOrder

      List<Department> findByParentIdAndStatusOrderBySortOrder(Long parentId, Integer status)
      通过父id和状态获取 升序
    • findByTitleLikeOrderBySortOrder

      List<Department> findByTitleLikeOrderBySortOrder(String title)
      部门名模糊搜索 升序
    • findByTitleLikeAndIdInOrderBySortOrder

      List<Department> findByTitleLikeAndIdInOrderBySortOrder(String title, List<Long> departmentIds)
      部门名模糊搜索 升序 数据权限
    • findByDeletedAndStatus

      List<Department> findByDeletedAndStatus(Integer deleted, Integer status)
      获得全部部门
    • findByDeletedAndStatusAndParentId

      List<Department> findByDeletedAndStatusAndParentId(Integer deleted, Integer status, Long parentId)
      根据父节点获得部门列表