同步通道任务完善

This commit is contained in:
lxj
2025-07-31 15:38:04 +08:00
parent 8f71f5f261
commit e016e6d44c
10 changed files with 272 additions and 76 deletions

View File

@@ -1,15 +1,17 @@
package org.dromara.sis.api;
import org.dromara.sis.api.domain.RemoteSdkChannel;
import org.dromara.sis.api.domain.RemoteSisDeviceChannel;
import org.dromara.sis.api.domain.RemoteSisDeviceManage;
import java.util.List;
public interface RemoteHikDeviceService {
public interface RemoteDeviceService {
/**
* 查询所有的海康设备信息
*
* @return 返回海康设备列表
*/
List<RemoteSisDeviceManage> queryHikDevices();
@@ -17,6 +19,7 @@ public interface RemoteHikDeviceService {
/**
* 更新设备在线状态
*
* @param item 设备信息
* @return 返回是否操作成功
*/
@@ -24,6 +27,7 @@ public interface RemoteHikDeviceService {
/**
* 查询设备通道信息
*
* @param deviceIp 设备ip
* @return 返回通道列表
*/
@@ -31,8 +35,32 @@ public interface RemoteHikDeviceService {
/**
* 更新设备通道在线状态
*
* @param deviceIp 设备ip
* @return 返回是否成功
*/
Boolean updateDeviceChannelState(String deviceIp, Integer onLineState);
/**
* 根据ip列表删除设备通道
*
* @param list ip列表
* @return 返回删除条数
*/
Integer deleteByChannelIps(List<String> list);
/**
* 批量写入设备通道
*
* @param insertData 写入数据
* @return 返回写入条数
*/
Boolean insertChannel(List<RemoteSdkChannel> insertData);
/**
* 更新设备通道信息
* @param updateData 更新数据
* @return 返回更新成功数量
*/
Integer updateChannelInfo(List<RemoteSisDeviceChannel> updateData);
}

View File

@@ -5,6 +5,23 @@ import lombok.Data;
@Data
public class RemoteSdkChannel {
private Long deviceId;
private String nvrIp;
private Integer nvrPort;
private String nvrAccount;
private String nvrPwd;
private String nvrFactoryNo;
private Long groupId;
private String tenantId;
/**
* 通道id
*/

View File

@@ -62,4 +62,9 @@ public class RemoteSisDeviceManage {
* 设备组id
*/
private Long groupId;
/**
* 租户编号
*/
private String tenantId;
}