package com.fzzy.async.fzzy35.repository; import com.fzzy.async.fzzy35.entity.Fz35Quality; 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 2023-05-14 19:55 */ public interface Fzzy35Sync1310Rep extends JpaRepository { /** * 根据时间段查询粮情数据 * @param start * @param end * @return */ @Query("from Fz35Quality where time >=:start and time <:end order by time ") List findDateByTime(@Param("start") Date start, @Param("end") Date end); }