package com.fzzy.api.view.repository; import com.fzzy.api.entity.Api1307; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import java.util.Date; import java.util.List; public interface Api1307Rep extends JpaRepository, JpaSpecificationExecutor { @Query("from Api1307 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") List findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); @Query("from Api1307 where bizId=:bizId ") List getDataByBizId(@Param("bizId") String bizId); }