CZT
2024-01-30 f58c03f4c98b3664f22a3ec4e920fb2a42473ab9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.fzzy.async.fzzy40.repository;
 
import com.fzzy.async.fzzy40.entity.Fz40SecCamera;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.List;
 
/**
 * 监控信息
 */
public interface Fzzy40Sync1111Rep extends JpaRepository<Fz40SecCamera, String> {
 
    /**
     * 获取摄像头信息
     *
     * @return
     */
//    @Query("from Fz40SecCamera where deptId=:deptId and updateTime >=:start and updateTime <:end order by updateTime ")
//    List<Fz40SecCamera> listCamera(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end);
    @Query("from Fz40SecCamera where deptId=:deptId order by ipIn")
    List<Fz40SecCamera> listCamera(@Param("deptId") String deptId);
 
}