CZT
2023-09-30 e2e12e76f0a4aa83580519b56ff1128d01bf75ba
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,16 +9,14 @@
/**
 * 监控信息
 */
public interface Fzzy35Sync1111Rep extends JpaRepository<SecCamera, String> {
public interface Fzzy35Sync1111Rep extends JpaRepository<Fz35SecCamera, String> {
    /**
     * 获取摄像头信息
     *
     * @return
     */
//    @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 id")
    List<Fz35SecCamera> listCamera(@Param("deptId") String deptId);
}