package com.fzzy.async.fzzy30.repository; import com.fzzy.async.fzzy30.entity.Gas; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import java.util.Date; import java.util.List; /** * 查询气体检测数据 * * @author chen * @date 2022-09-08 10:42 */ public interface FzzySync1304Rep extends JpaRepository { /** * 根据时间段查询粮情数据 * @param start * @param end * @return */ @Query("from Gas where receiveDate >=:start and receiveDate <:end order by receiveDate ") List findByReceiveDate(@Param("start") Date start, @Param("end") Date end); }