| | |
| | | package com.fzzy.async.fzzy35.repository; |
| | | |
| | | import com.fzzy.async.fzzy35.entity.Grain; |
| | | import com.fzzy.async.fzzy35.entity.Fz35Grain; |
| | | 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-07 14:35 |
| | | */ |
| | | public interface Fzzy35Sync1302Rep extends JpaRepository<Grain, String> { |
| | | public interface Fzzy35Sync1302Rep extends JpaRepository<Fz35Grain, String> { |
| | | |
| | | /** |
| | | * 根据时间段查询粮情数据 |
| | |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Grain where receiveDate >=:start and receiveDate <:end order by receiveDate ") |
| | | List<Grain> findByReceiveDate(@Param("start") Date start, @Param("end") Date end); |
| | | @Query("from Fz35Grain where receiveDate >=:start and receiveDate <:end order by receiveDate ") |
| | | List<Fz35Grain> findByReceiveDate(@Param("start") Date start, @Param("end") Date end); |
| | | } |