接口 DictDao

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

@Repository public interface DictDao extends plus.hiver.common.base.HiverBaseDao<Dict,Long>
字典数据处理层

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

作者:
Yazhi Li
  • 嵌套类概要

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

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

    修饰符和类型
    方法
    说明
    排序获取全部
    模糊搜索
    通过type获取

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

    • findAllOrderBySortOrder

      @Query("select d from Dict d order by d.sortOrder") List<Dict> findAllOrderBySortOrder()
      排序获取全部
      返回:
      字典列表
    • findByType

      Dict findByType(String type)
      通过type获取
      参数:
      type - 字典类型
      返回:
      字典信息
    • findByTitleOrTypeLike

      @Query("select d from Dict d where d.title like %:key% or d.type like %:key% order by d.sortOrder") List<Dict> findByTitleOrTypeLike(@Param("key") String key)
      模糊搜索
      参数:
      key - 关键字
      返回:
      字典列表