|  |  |  | 
|---|
|  |  |  | package com.fzzy.async.fzzy35.repository; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.fzzy.async.fzzy35.entity.Pest; | 
|---|
|  |  |  | import com.fzzy.async.fzzy35.entity.Fz35Pest; | 
|---|
|  |  |  | import org.springframework.data.jpa.repository.JpaRepository; | 
|---|
|  |  |  | import org.springframework.data.jpa.repository.Query; | 
|---|
|  |  |  | import org.springframework.data.repository.query.Param; | 
|---|
|  |  |  | 
|---|
|  |  |  | * @author chen | 
|---|
|  |  |  | * @date 2022-09-08 09:51 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public interface Fzzy35Sync1303Rep extends JpaRepository<Pest, String> { | 
|---|
|  |  |  | public interface Fzzy35Sync1303Rep extends JpaRepository<Fz35Pest, String> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据时间段查询粮情数据 | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param end | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Query("from Pest where receiveDate >=:start and receiveDate <:end order by receiveDate ") | 
|---|
|  |  |  | List<Pest> findPestByReceiveDate(@Param("start") Date start, @Param("end") Date end); | 
|---|
|  |  |  | @Query("from Fz35Pest where receiveDate >=:start and receiveDate <:end order by receiveDate ") | 
|---|
|  |  |  | List<Fz35Pest> findPestByReceiveDate(@Param("start") Date start, @Param("end") Date end); | 
|---|
|  |  |  | } | 
|---|