程序包 cn.xisoil.dao

接口 SectionAnalysisRepository

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

@Repository public interface SectionAnalysisRepository extends YueRepository<SectionAnalysis,String>
  • 方法概要

    修饰符和类型
    方法
    说明
     
     

    从接口继承的方法 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, 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

    从接口继承的方法 cn.xisoil.dao.utils.YueRepository

    deleteAllByIdIn, findTopByIdNotNull
  • 方法详细资料

    • findTopByDateAndSectionName

      Optional<SectionAnalysis> findTopByDateAndSectionName(String time, String sectionName)
    • findTop5SumBySectionName

      @Query("select new map(sectionAnalysis.sectionName as sectionName,sum(sectionAnalysis.uvCount) as uvCount) from SectionAnalysis sectionAnalysis group by sectionAnalysis.sectionName order by sum(sectionAnalysis.uvCount) desc") List<Map<String,Object>> findTop5SumBySectionName()