|  |  |  | 
|---|
|  |  |  | 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<Api1307, String>, JpaSpecificationExecutor<Api1307> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1307 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") | 
|---|
|  |  |  | List<Api1307> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1307 where bizId=:bizId ") | 
|---|
|  |  |  | List<Api1307> getDataByBizId(@Param("bizId") String bizId); | 
|---|
|  |  |  | } | 
|---|