陈战涛
2023-05-10 bca371e7ecc906ec824630c32aefd29a7a4f68d0
src/main/java/com/fzzy/async/fzzy35/repository/Fzzy35Sync1111Rep.java
@@ -1,6 +1,6 @@
package com.fzzy.async.fzzy35.repository;
import com.fzzy.async.fzzy35.entity.SecCamera;
import com.fzzy.async.fzzy35.entity.Fz35SecCamera;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
@@ -9,7 +9,7 @@
/**
 * 监控信息
 */
public interface Fzzy35Sync1111Rep extends JpaRepository<SecCamera, String> {
public interface Fzzy35Sync1111Rep extends JpaRepository<Fz35SecCamera, String> {
    /**
     * 获取摄像头信息
@@ -18,7 +18,7 @@
     */
//    @Query("from SecCamera where deptId=:deptId and updateTime >=:start and updateTime <:end order by updateTime ")
//    List<SecCamera> listCamera(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end);
    @Query("from SecCamera where deptId=:deptId order by ipIn")
    List<SecCamera> listCamera(@Param("deptId") String deptId);
    @Query("from Fz35SecCamera where deptId=:deptId order by ipIn")
    List<Fz35SecCamera> listCamera(@Param("deptId") String deptId);
}