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