程序包 cn.xisoil.dao

接口 EquipmentAnalysisRepository

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

@Repository public interface EquipmentAnalysisRepository extends YueRepository<EquipmentAnalysis,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
  • 方法详细资料

    • findTopByDateAndEquipment

      Optional<EquipmentAnalysis> findTopByDateAndEquipment(String time, AnalysisEquipment equipment)
    • findTop5SumByEquipment

      @Query("select new map(equipment.equipment as name,sum(equipment.uvCount) as value) from EquipmentAnalysis equipment group by equipment.equipment order by sum(equipment.uvCount) desc") List<Map<String,Object>> findTop5SumByEquipment()