CZT
2023-09-23 a1f0690d10288f9aa82b7fe96a9c4e33d9ad7661
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
28
package com.fzzy.async.fzzy40.repository;
 
import com.fzzy.async.fzzy40.entity.Fz40AreationData;
import com.fzzy.async.fzzy40.entity.Fz40DrugLog;
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 Fzzy40Sync1306Rep extends JpaRepository<Fz40DrugLog, String> {
 
    /**
     * 根据时间段查询通风数据
     * @param start
     * @param end
     * @return
     */
    @Query("from Fz40DrugLog where start >=:start and start <:end order by start ")
    List<Fz40DrugLog> findByReceiveDate(@Param("start") Date start, @Param("end") Date end);
}