jiazx0107@163.com
2024-01-19 dd7a033e4591b8004ecd570ef4ff2ef925df65bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.fzzy.async.fzzy30.repository;
 
import com.fzzy.async.fzzy30.entity.Pest;
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 09:51
 */
public interface FzzySync1303Rep extends JpaRepository<Pest, String> {
 
    /**
     * 根据时间段查询粮情数据
     * @param start
     * @param end
     * @return
     */
    @Query("from Pest where receiveDate >=:start and receiveDate <:end order by receiveDate ")
    List<Pest> findByReceiveDate(@Param("start") Date start, @Param("end") Date end);
}