panlinlin
4 years ago
20 changed files with 222 additions and 1225 deletions
@ -1,45 +0,0 @@ |
|||||
package com.genersoft.iot.vmp.common; |
|
||||
|
|
||||
|
|
||||
import java.util.List; |
|
||||
|
|
||||
public class PageResult<T> { |
|
||||
|
|
||||
private int page; |
|
||||
private int count; |
|
||||
private int total; |
|
||||
|
|
||||
private List<T> data; |
|
||||
|
|
||||
public List<T> getData() { |
|
||||
return data; |
|
||||
} |
|
||||
|
|
||||
public int getPage() { |
|
||||
return page; |
|
||||
} |
|
||||
|
|
||||
public void setPage(int page) { |
|
||||
this.page = page; |
|
||||
} |
|
||||
|
|
||||
public int getCount() { |
|
||||
return count; |
|
||||
} |
|
||||
|
|
||||
public void setCount(int count) { |
|
||||
this.count = count; |
|
||||
} |
|
||||
|
|
||||
public int getTotal() { |
|
||||
return total; |
|
||||
} |
|
||||
|
|
||||
public void setTotal(int total) { |
|
||||
this.total = total; |
|
||||
} |
|
||||
|
|
||||
public void setData(List<T> data) { |
|
||||
this.data = data; |
|
||||
} |
|
||||
} |
|
@ -1,17 +0,0 @@ |
|||||
package com.genersoft.iot.vmp.storager; |
|
||||
|
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.boot.CommandLineRunner; |
|
||||
import org.springframework.stereotype.Component; |
|
||||
|
|
||||
@Component |
|
||||
public class VodeoMannagerTask implements CommandLineRunner { |
|
||||
|
|
||||
@Autowired |
|
||||
private IVideoManagerStorager redisStorager; |
|
||||
|
|
||||
@Override |
|
||||
public void run(String... strings) throws Exception { |
|
||||
redisStorager.updateCatch(); |
|
||||
} |
|
||||
} |
|
@ -1,20 +1,50 @@ |
|||||
package com.genersoft.iot.vmp.storager.dao; |
package com.genersoft.iot.vmp.storager.dao; |
||||
|
|
||||
import com.genersoft.iot.vmp.common.PageResult; |
|
||||
import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel; |
import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel; |
||||
import org.apache.ibatis.annotations.Mapper; |
import org.apache.ibatis.annotations.*; |
||||
|
|
||||
import java.util.List; |
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 用于存储设备通道信息 |
||||
|
*/ |
||||
@Mapper |
@Mapper |
||||
public interface DeviceChannelMapper { |
public interface DeviceChannelMapper { |
||||
int update(DeviceChannel channel); |
|
||||
|
|
||||
List<DeviceChannel> queryChannelsByDeviceId(String deviceId); |
@Insert("INSERT INTO device_channel (channelId, deviceId, name, manufacture, model, owner, civilCode, block, " + |
||||
|
"address, parental, parentId, safetyWay, registerWay, certNum, certifiable, errCode, secrecy, " + |
||||
|
"ipAddress, port, password, PTZType, status) " + |
||||
|
"VALUES ('${channelId}', '${deviceId}', '${name}', '${manufacture}', '${model}', '${owner}', '${civilCode}', '${block}'," + |
||||
|
"'${address}', ${parental}, '${parentId}', ${safetyWay}, ${registerWay}, '${certNum}', ${certifiable}, ${errCode}, '${secrecy}', " + |
||||
|
"'${ipAddress}', ${port}, '${password}', ${PTZType}, ${status})") |
||||
|
int add(DeviceChannel channel); |
||||
|
|
||||
|
@Update("UPDATE device_channel " + |
||||
|
"SET name=#{name}, manufacture=#{manufacture}, model=#{model}, owner=#{owner}, civilCode=#{civilCode}, " + |
||||
|
"block=#{block}, address=#{address}, parental=#{parental}, parentId=#{parentId}, safetyWay=#{safetyWay}, " + |
||||
|
"registerWay=#{registerWay}, certNum=#{certNum}, certifiable=#{certifiable}, errCode=#{errCode}, secrecy=#{secrecy}, " + |
||||
|
"ipAddress=#{ipAddress}, port=#{port}, password=#{password}, PTZType=#{PTZType}, status=#{status} " + |
||||
|
"WHERE deviceId=#{deviceId} AND channelId=#{channelId}") |
||||
|
int update(DeviceChannel channel); |
||||
|
|
||||
List<DeviceChannel> queryChannelsByDeviceId(String deviceId, String parentChannelId); |
@Select(value = {" <script>" + |
||||
|
"SELECT * FROM ( "+ |
||||
|
" SELECT * , (SELECT count(0) FROM device_channel WHERE parentId=dc.channelId) as subCount FROM device_channel dc " + |
||||
|
" WHERE dc.deviceId=#{deviceId} " + |
||||
|
" <if test=\"query != null\"> AND (dc.channelId LIKE '%${query}%' OR dc.name LIKE '%${query}%' OR dc.name LIKE '%${query}%')</if> " + |
||||
|
" <if test=\"parentChannelId != null\"> AND dc.parentId=#{parentChannelId} </if> " + |
||||
|
" <if test=\"online == true\" > AND dc.status=1</if>" + |
||||
|
" <if test=\"online == false\" > AND dc.status=0</if>) dcr" + |
||||
|
" WHERE 1=1 " + |
||||
|
" <if test=\"hasSubChannel == true\" > AND subCount >0</if>" + |
||||
|
" <if test=\"hasSubChannel == false\" > AND subCount=0</if>" + |
||||
|
" </script>"}) |
||||
|
List<DeviceChannel> queryChannelsByDeviceId(String deviceId, String parentChannelId, String query, Boolean hasSubChannel, Boolean online); |
||||
|
|
||||
|
@Select("SELECT * FROM device_channel WHERE deviceId=#{deviceId} AND channelId=#{channelId}") |
||||
DeviceChannel queryChannel(String deviceId, String channelId); |
DeviceChannel queryChannel(String deviceId, String channelId); |
||||
|
|
||||
|
@Delete("DELETE FROM device_channel WHERE deviceId=#{deviceId}") |
||||
int cleanChannelsByDeviceId(String deviceId); |
int cleanChannelsByDeviceId(String deviceId); |
||||
|
|
||||
} |
} |
||||
|
@ -1,24 +1,66 @@ |
|||||
package com.genersoft.iot.vmp.storager.dao; |
package com.genersoft.iot.vmp.storager.dao; |
||||
|
|
||||
import com.genersoft.iot.vmp.gb28181.bean.Device; |
import com.genersoft.iot.vmp.gb28181.bean.Device; |
||||
import org.apache.ibatis.annotations.Insert; |
import org.apache.ibatis.annotations.*; |
||||
import org.apache.ibatis.annotations.Mapper; |
import org.springframework.stereotype.Repository; |
||||
import org.apache.ibatis.annotations.Select; |
|
||||
|
|
||||
import java.util.List; |
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 用于存储设备信息 |
||||
|
*/ |
||||
@Mapper |
@Mapper |
||||
|
@Repository |
||||
public interface DeviceMapper { |
public interface DeviceMapper { |
||||
|
|
||||
@Select("SELECT * FROM device WHERE deviceId = #{deviceId}") |
@Select("SELECT * FROM device WHERE deviceId = #{deviceId}") |
||||
Device getDeviceByDeviceId(String deviceId); |
Device getDeviceByDeviceId(String deviceId); |
||||
|
|
||||
@Insert("SELECT * FROM device WHERE deviceId = #{deviceId}") |
@Insert("INSERT INTO device (" + |
||||
|
"deviceId, " + |
||||
|
"name, " + |
||||
|
"manufacturer, " + |
||||
|
"model, " + |
||||
|
"firmware, " + |
||||
|
"transport," + |
||||
|
"streamMode," + |
||||
|
"ip," + |
||||
|
"port," + |
||||
|
"hostAddress," + |
||||
|
"online" + |
||||
|
") VALUES (" + |
||||
|
"#{deviceId}," + |
||||
|
"#{name}," + |
||||
|
"#{manufacturer}," + |
||||
|
"#{model}," + |
||||
|
"#{firmware}," + |
||||
|
"#{transport}," + |
||||
|
"#{streamMode}," + |
||||
|
"#{ip}," + |
||||
|
"#{port}," + |
||||
|
"#{hostAddress}," + |
||||
|
"#{online}" + |
||||
|
")") |
||||
int add(Device device); |
int add(Device device); |
||||
|
|
||||
|
|
||||
|
@Update("UPDATE device " + |
||||
|
"SET name=#{name}, " + |
||||
|
"manufacturer=#{manufacturer}," + |
||||
|
"model=#{model}," + |
||||
|
"firmware=#{firmware}, " + |
||||
|
"transport=#{transport}," + |
||||
|
"streamMode=#{streamMode}, " + |
||||
|
"ip=#{ip}, " + |
||||
|
"port=#{port}, " + |
||||
|
"hostAddress=#{hostAddress}, " + |
||||
|
"online=#{online} " + |
||||
|
"WHERE deviceId=#{deviceId}") |
||||
int update(Device device); |
int update(Device device); |
||||
|
|
||||
|
@Select("SELECT *, (SELECT count(0) FROM device_channel WHERE deviceId=de.deviceId) as channelCount FROM device de") |
||||
List<Device> getDevices(); |
List<Device> getDevices(); |
||||
|
|
||||
|
@Delete("DELETE FROM device WHERE deviceId=#{deviceId}") |
||||
int del(String deviceId); |
int del(String deviceId); |
||||
} |
} |
||||
|
@ -1,401 +0,0 @@ |
|||||
package com.genersoft.iot.vmp.vmanager.device.entity; |
|
||||
|
|
||||
import java.util.List; |
|
||||
|
|
||||
import javax.persistence.Column; |
|
||||
import javax.persistence.Id; |
|
||||
import javax.persistence.Table; |
|
||||
import javax.persistence.Transient; |
|
||||
import javax.validation.constraints.Max; |
|
||||
import javax.validation.constraints.NotNull; |
|
||||
import javax.validation.constraints.Size; |
|
||||
|
|
||||
import io.swagger.annotations.ApiModel; |
|
||||
import io.swagger.annotations.ApiModelProperty; |
|
||||
|
|
||||
/** |
|
||||
* @Description:视频设备信息 |
|
||||
* @author: songww |
|
||||
* @date: 2020年5月8日 下午2:05:56 |
|
||||
*/ |
|
||||
@ApiModel(value = "视频设备信息", description = "视频设备信息") |
|
||||
@Table(name="VMP_VIDEODEVICES") |
|
||||
public class Device { |
|
||||
|
|
||||
/** |
|
||||
* 设备Id |
|
||||
*/ |
|
||||
@ApiModelProperty("设备编号") |
|
||||
@Id |
|
||||
@Column(name="DEVICE_ID") |
|
||||
@NotNull(message = "deviceId 不能为 null") |
|
||||
@Size(min = 4, max = 32, message = "deviceId 必须大于 4 位并且小于 32 位") |
|
||||
private String deviceId; |
|
||||
|
|
||||
/** |
|
||||
* 设备名称 |
|
||||
*/ |
|
||||
@ApiModelProperty("设备名称") |
|
||||
@Column(name="DEVICE_NAME") |
|
||||
@Size(max = 32, message = "deviceName 必须小于 32 位") |
|
||||
private String deviceName; |
|
||||
|
|
||||
/** |
|
||||
* 生产厂商 |
|
||||
*/ |
|
||||
@ApiModelProperty("生产厂商") |
|
||||
@Column(name="MANUFACTURER") |
|
||||
@Size(max = 64, message = "manufacturer 必须小于 64 位") |
|
||||
private String manufacturer; |
|
||||
|
|
||||
/** |
|
||||
* 型号 |
|
||||
*/ |
|
||||
@ApiModelProperty("型号") |
|
||||
@Column(name="MODEL") |
|
||||
@Size(max = 64, message = "manufacturer 必须小于 64 位") |
|
||||
private String model; |
|
||||
|
|
||||
/** |
|
||||
* 固件版本 |
|
||||
*/ |
|
||||
@ApiModelProperty("固件版本") |
|
||||
@Column(name="FIRMWARE") |
|
||||
@Size(max = 64, message = "firmware 必须小于 64 位") |
|
||||
private String firmware; |
|
||||
|
|
||||
/** |
|
||||
* 通信协议 |
|
||||
* GB28181 ONVIF |
|
||||
*/ |
|
||||
@ApiModelProperty("通信协议") |
|
||||
@Column(name="PROTOCOL") |
|
||||
@NotNull(message = "protocol 不能为 null") |
|
||||
@Size(max = 16, message = "protocol 必须小于 16 位") |
|
||||
private String protocol; |
|
||||
|
|
||||
/** |
|
||||
* SIP 传输协议 |
|
||||
* UDP/TCP |
|
||||
*/ |
|
||||
@ApiModelProperty("SIP 传输协议") |
|
||||
@Column(name="TRANSPORT") |
|
||||
@Size(min = 3,max = 3 ,message = "transport 必须为 3 位") |
|
||||
private String transport; |
|
||||
|
|
||||
/** |
|
||||
* 数据流传输模式 |
|
||||
* UDP:udp传输 |
|
||||
* TCP-ACTIVE:tcp主动模式 |
|
||||
* TCP-PASSIVE:tcp被动模式 |
|
||||
*/ |
|
||||
@ApiModelProperty("数据流传输模式") |
|
||||
@Column(name="STREAM_MODE") |
|
||||
@Size(max = 64, message = "streamMode 必须小于 16 位") |
|
||||
private String streamMode; |
|
||||
|
|
||||
/** |
|
||||
* IP地址 |
|
||||
*/ |
|
||||
@ApiModelProperty("IP地址") |
|
||||
@Column(name="IP") |
|
||||
@Size(max = 15, message = "streamMode 必须小于 15 位") |
|
||||
private String ip; |
|
||||
|
|
||||
/** |
|
||||
* 端口号 |
|
||||
*/ |
|
||||
@ApiModelProperty("端口号") |
|
||||
@Column(name="PORT") |
|
||||
@Max(value = 65535,message = "port 最大值为 65535") |
|
||||
private Integer port; |
|
||||
|
|
||||
/** |
|
||||
* 在线状态 1在线, 0离线 |
|
||||
*/ |
|
||||
@ApiModelProperty("在线状态") |
|
||||
@Size(min = 1,max = 1 ,message = "online 必须为 1 位") |
|
||||
@Column(name="ONLINE") |
|
||||
private String online; |
|
||||
|
|
||||
/** |
|
||||
* 通道数量 |
|
||||
*/ |
|
||||
@ApiModelProperty("通道数量") |
|
||||
@Column(name="CHANNEL_SUM") |
|
||||
@Max(value = 1000000000,message = "channelSum 最大值为 1000000000") |
|
||||
private Integer channelSum; |
|
||||
|
|
||||
@Override |
|
||||
public String toString() { |
|
||||
return "Device{" + |
|
||||
"deviceId='" + deviceId + '\'' + |
|
||||
", deviceName='" + deviceName + '\'' + |
|
||||
", manufacturer='" + manufacturer + '\'' + |
|
||||
", model='" + model + '\'' + |
|
||||
", firmware='" + firmware + '\'' + |
|
||||
", protocol='" + protocol + '\'' + |
|
||||
", transport='" + transport + '\'' + |
|
||||
", streamMode='" + streamMode + '\'' + |
|
||||
", ip='" + ip + '\'' + |
|
||||
", port=" + port + |
|
||||
", online='" + online + '\'' + |
|
||||
", channelSum=" + channelSum + |
|
||||
", createTime='" + createTime + '\'' + |
|
||||
", registerTime='" + registerTime + '\'' + |
|
||||
", heartbeatTime='" + heartbeatTime + '\'' + |
|
||||
", updateTime='" + updateTime + '\'' + |
|
||||
", updatePerson='" + updatePerson + '\'' + |
|
||||
", syncTime='" + syncTime + '\'' + |
|
||||
", syncPerson='" + syncPerson + '\'' + |
|
||||
", username='" + username + '\'' + |
|
||||
", password='" + password + '\'' + |
|
||||
", channelList=" + channelList + |
|
||||
'}'; |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 创建时间 |
|
||||
*/ |
|
||||
@ApiModelProperty("创建时间") |
|
||||
@Column(name="CREATE_TIME") |
|
||||
private String createTime; |
|
||||
|
|
||||
/** |
|
||||
* 注册时间 |
|
||||
*/ |
|
||||
@ApiModelProperty("注册时间") |
|
||||
@Column(name="REGISTER_TIME") |
|
||||
private String registerTime; |
|
||||
|
|
||||
/** |
|
||||
* 心跳时间 |
|
||||
*/ |
|
||||
@ApiModelProperty("心跳时间") |
|
||||
@Column(name="HEARTBEAT_TIME") |
|
||||
private String heartbeatTime; |
|
||||
|
|
||||
/** |
|
||||
* 修改时间 |
|
||||
*/ |
|
||||
@ApiModelProperty("更新时间") |
|
||||
@Column(name="UPDATE_TIME") |
|
||||
private String updateTime; |
|
||||
|
|
||||
/** |
|
||||
* 修改人 |
|
||||
*/ |
|
||||
@ApiModelProperty("修改人") |
|
||||
@Column(name="UPDATE_PERSON") |
|
||||
private String updatePerson; |
|
||||
|
|
||||
/** |
|
||||
* 同步时间 |
|
||||
*/ |
|
||||
@ApiModelProperty("同步时间") |
|
||||
@Column(name="SYNC_TIME") |
|
||||
private String syncTime; |
|
||||
|
|
||||
/** |
|
||||
* 同步人 |
|
||||
*/ |
|
||||
@ApiModelProperty("同步人") |
|
||||
@Column(name="SYNC_PERSON") |
|
||||
private String syncPerson; |
|
||||
|
|
||||
/** |
|
||||
* ONVIF协议-用户名 |
|
||||
*/ |
|
||||
@ApiModelProperty("用户名") |
|
||||
@Column(name="USERNAME") |
|
||||
@Size(max = 32, message = "username 必须小于 32 位") |
|
||||
private String username; |
|
||||
|
|
||||
/** |
|
||||
* ONVIF协议-密码 |
|
||||
*/ |
|
||||
@ApiModelProperty("密码") |
|
||||
@Size(max = 32, message = "password 必须小于 32 位") |
|
||||
@Column(name="PASSWORD") |
|
||||
private String password; |
|
||||
|
|
||||
@Transient |
|
||||
private List<DeviceChannel> channelList; |
|
||||
|
|
||||
|
|
||||
public String getDeviceId() { |
|
||||
return deviceId; |
|
||||
} |
|
||||
|
|
||||
public void setDeviceId(String deviceId) { |
|
||||
this.deviceId = deviceId; |
|
||||
} |
|
||||
|
|
||||
public String getDeviceName() { |
|
||||
return deviceName; |
|
||||
} |
|
||||
|
|
||||
public void setDeviceName(String deviceName) { |
|
||||
this.deviceName = deviceName; |
|
||||
} |
|
||||
|
|
||||
public String getManufacturer() { |
|
||||
return manufacturer; |
|
||||
} |
|
||||
|
|
||||
public void setManufacturer(String manufacturer) { |
|
||||
this.manufacturer = manufacturer; |
|
||||
} |
|
||||
|
|
||||
public String getModel() { |
|
||||
return model; |
|
||||
} |
|
||||
|
|
||||
public void setModel(String model) { |
|
||||
this.model = model; |
|
||||
} |
|
||||
|
|
||||
public String getFirmware() { |
|
||||
return firmware; |
|
||||
} |
|
||||
|
|
||||
public void setFirmware(String firmware) { |
|
||||
this.firmware = firmware; |
|
||||
} |
|
||||
|
|
||||
public String getProtocol() { |
|
||||
return protocol; |
|
||||
} |
|
||||
|
|
||||
public void setProtocol(String protocol) { |
|
||||
this.protocol = protocol; |
|
||||
} |
|
||||
|
|
||||
public String getTransport() { |
|
||||
return transport; |
|
||||
} |
|
||||
|
|
||||
public void setTransport(String transport) { |
|
||||
this.transport = transport; |
|
||||
} |
|
||||
|
|
||||
public String getStreamMode() { |
|
||||
return streamMode; |
|
||||
} |
|
||||
|
|
||||
public void setStreamMode(String streamMode) { |
|
||||
this.streamMode = streamMode; |
|
||||
} |
|
||||
|
|
||||
public String getIp() { |
|
||||
return ip; |
|
||||
} |
|
||||
|
|
||||
public void setIp(String ip) { |
|
||||
this.ip = ip; |
|
||||
} |
|
||||
|
|
||||
public Integer getPort() { |
|
||||
return port; |
|
||||
} |
|
||||
|
|
||||
public void setPort(Integer port) { |
|
||||
this.port = port; |
|
||||
} |
|
||||
|
|
||||
public String getOnline() { |
|
||||
return online; |
|
||||
} |
|
||||
|
|
||||
public void setOnline(String online) { |
|
||||
this.online = online; |
|
||||
} |
|
||||
|
|
||||
public Integer getChannelSum() { |
|
||||
return channelSum; |
|
||||
} |
|
||||
|
|
||||
public void setChannelSum(Integer channelSum) { |
|
||||
this.channelSum = channelSum; |
|
||||
} |
|
||||
|
|
||||
public String getCreateTime() { |
|
||||
return createTime; |
|
||||
} |
|
||||
|
|
||||
public void setCreateTime(String createTime) { |
|
||||
this.createTime = createTime; |
|
||||
} |
|
||||
|
|
||||
public String getRegisterTime() { |
|
||||
return registerTime; |
|
||||
} |
|
||||
|
|
||||
public void setRegisterTime(String registerTime) { |
|
||||
this.registerTime = registerTime; |
|
||||
} |
|
||||
|
|
||||
public String getHeartbeatTime() { |
|
||||
return heartbeatTime; |
|
||||
} |
|
||||
|
|
||||
public void setHeartbeatTime(String heartbeatTime) { |
|
||||
this.heartbeatTime = heartbeatTime; |
|
||||
} |
|
||||
|
|
||||
public String getUpdateTime() { |
|
||||
return updateTime; |
|
||||
} |
|
||||
|
|
||||
public void setUpdateTime(String updateTime) { |
|
||||
this.updateTime = updateTime; |
|
||||
} |
|
||||
|
|
||||
public String getUpdatePerson() { |
|
||||
return updatePerson; |
|
||||
} |
|
||||
|
|
||||
public void setUpdatePerson(String updatePerson) { |
|
||||
this.updatePerson = updatePerson; |
|
||||
} |
|
||||
|
|
||||
public String getSyncTime() { |
|
||||
return syncTime; |
|
||||
} |
|
||||
|
|
||||
public void setSyncTime(String syncTime) { |
|
||||
this.syncTime = syncTime; |
|
||||
} |
|
||||
|
|
||||
public String getSyncPerson() { |
|
||||
return syncPerson; |
|
||||
} |
|
||||
|
|
||||
public void setSyncPerson(String syncPerson) { |
|
||||
this.syncPerson = syncPerson; |
|
||||
} |
|
||||
|
|
||||
public String getUsername() { |
|
||||
return username; |
|
||||
} |
|
||||
|
|
||||
public void setUsername(String username) { |
|
||||
this.username = username; |
|
||||
} |
|
||||
|
|
||||
public String getPassword() { |
|
||||
return password; |
|
||||
} |
|
||||
|
|
||||
public void setPassword(String password) { |
|
||||
this.password = password; |
|
||||
} |
|
||||
|
|
||||
public List<DeviceChannel> getChannelList() { |
|
||||
return channelList; |
|
||||
} |
|
||||
|
|
||||
public void setChannelList(List<DeviceChannel> channelList) { |
|
||||
this.channelList = channelList; |
|
||||
} |
|
||||
} |
|
@ -1,385 +0,0 @@ |
|||||
package com.genersoft.iot.vmp.vmanager.device.entity; |
|
||||
|
|
||||
import javax.persistence.Column; |
|
||||
import javax.persistence.Id; |
|
||||
import javax.persistence.Table; |
|
||||
|
|
||||
import io.swagger.annotations.ApiModel; |
|
||||
import io.swagger.annotations.ApiModelProperty; |
|
||||
|
|
||||
/** |
|
||||
* @Description:设备通道信息 |
|
||||
* @author: songww |
|
||||
* @date: 2020年5月20日 下午9:00:46 |
|
||||
*/ |
|
||||
@ApiModel(value = "设备通道信息", description = "设备通道信息") |
|
||||
@Table(name="VMP_VIDEOCHANNELS") |
|
||||
public class DeviceChannel { |
|
||||
|
|
||||
/** |
|
||||
* 通道编号 |
|
||||
*/ |
|
||||
@ApiModelProperty("通道编号") |
|
||||
@Id |
|
||||
@Column(name="CHANNEL_ID") |
|
||||
private String channelId; |
|
||||
|
|
||||
/** |
|
||||
* 设备编号 |
|
||||
*/ |
|
||||
@ApiModelProperty("设备编号") |
|
||||
@Column(name="DEVICE_ID") |
|
||||
private String deviceId; |
|
||||
|
|
||||
/** |
|
||||
* 通道名 |
|
||||
*/ |
|
||||
@ApiModelProperty("通道名") |
|
||||
@Column(name="CHANNEL_NAME") |
|
||||
private String channelName; |
|
||||
|
|
||||
/** |
|
||||
* 生产厂商 |
|
||||
*/ |
|
||||
@ApiModelProperty("生产厂商") |
|
||||
@Column(name="MANUFACTURER") |
|
||||
private String manufacture; |
|
||||
|
|
||||
/** |
|
||||
* 型号 |
|
||||
*/ |
|
||||
@ApiModelProperty("型号") |
|
||||
@Column(name="MODEL") |
|
||||
private String model; |
|
||||
|
|
||||
/** |
|
||||
* 设备归属 |
|
||||
*/ |
|
||||
@ApiModelProperty("设备归属") |
|
||||
@Column(name="OWNER") |
|
||||
private String owner; |
|
||||
|
|
||||
/** |
|
||||
* 行政区域 |
|
||||
*/ |
|
||||
@ApiModelProperty("行政区域") |
|
||||
@Column(name="CIVIL_CODE") |
|
||||
private String civilCode; |
|
||||
|
|
||||
/** |
|
||||
* 警区 |
|
||||
*/ |
|
||||
@ApiModelProperty("警区") |
|
||||
@Column(name="BLOCK") |
|
||||
private String block; |
|
||||
|
|
||||
/** |
|
||||
* 安装地址 |
|
||||
*/ |
|
||||
@ApiModelProperty("安装地址") |
|
||||
@Column(name="ADDRESS") |
|
||||
private String address; |
|
||||
|
|
||||
/** |
|
||||
* 是否有子设备 1有, 0没有 |
|
||||
*/ |
|
||||
@ApiModelProperty("是否有子设备") |
|
||||
@Column(name="PARENTAL") |
|
||||
private String parental; |
|
||||
|
|
||||
/** |
|
||||
* 父级id |
|
||||
*/ |
|
||||
@ApiModelProperty("父级编码") |
|
||||
@Column(name="PARENT_ID") |
|
||||
private String parentId; |
|
||||
|
|
||||
/** |
|
||||
* 信令安全模式 缺省为0; 0:不采用; 2: S/MIME签名方式; 3: S/ MIME加密签名同时采用方式; 4:数字摘要方式 |
|
||||
*/ |
|
||||
@ApiModelProperty("信令安全模式") |
|
||||
@Column(name="SAFETY_WAY") |
|
||||
private String safetyWay; |
|
||||
|
|
||||
/** |
|
||||
* 注册方式 缺省为1;1:符合IETFRFC3261标准的认证注册模 式; 2:基于口令的双向认证注册模式; 3:基于数字证书的双向认证注册模式 |
|
||||
*/ |
|
||||
@ApiModelProperty("注册方式") |
|
||||
@Column(name="REGISTER_WAY") |
|
||||
private String registerWay; |
|
||||
|
|
||||
/** |
|
||||
* 证书序列号 |
|
||||
*/ |
|
||||
@ApiModelProperty("证书序列号") |
|
||||
@Column(name="CERT_NUM") |
|
||||
private String certNum; |
|
||||
|
|
||||
/** |
|
||||
* 证书有效标识 缺省为0;证书有效标识:0:无效1: 有效 |
|
||||
*/ |
|
||||
@ApiModelProperty("证书有效标识") |
|
||||
@Column(name="CERT_VALID") |
|
||||
private String certValid; |
|
||||
|
|
||||
/** |
|
||||
* 证书无效原因码 |
|
||||
*/ |
|
||||
@ApiModelProperty("证书无效原因码") |
|
||||
@Column(name="CERT_ERRCODE") |
|
||||
private String certErrCode; |
|
||||
|
|
||||
/** |
|
||||
* 证书终止有效期 |
|
||||
*/ |
|
||||
@ApiModelProperty("证书终止有效期") |
|
||||
@Column(name="CERT_ENDTIME") |
|
||||
private String certEndTime; |
|
||||
|
|
||||
/** |
|
||||
* 保密属性 缺省为0; 0:不涉密, 1:涉密 |
|
||||
*/ |
|
||||
@ApiModelProperty("保密属性") |
|
||||
@Column(name="SECRECY") |
|
||||
private String secrecy; |
|
||||
|
|
||||
/** |
|
||||
* IP地址 |
|
||||
*/ |
|
||||
@ApiModelProperty("IP地址") |
|
||||
@Column(name="IP") |
|
||||
private String ip; |
|
||||
|
|
||||
/** |
|
||||
* 端口号 |
|
||||
*/ |
|
||||
@ApiModelProperty("端口号") |
|
||||
@Column(name="PORT") |
|
||||
private Integer port; |
|
||||
|
|
||||
/** |
|
||||
* 密码 |
|
||||
*/ |
|
||||
@ApiModelProperty("密码") |
|
||||
@Column(name="PASSWORD") |
|
||||
private String password; |
|
||||
|
|
||||
/** |
|
||||
* 在线/离线 |
|
||||
* 1在线,0离线 |
|
||||
* 默认在线 |
|
||||
* 信令: |
|
||||
* <Status>ON</Status> |
|
||||
* <Status>OFF</Status> |
|
||||
* 遇到过NVR下的IPC下发信令可以推流, 但是 Status 响应 OFF |
|
||||
*/ |
|
||||
@ApiModelProperty("状态") |
|
||||
@Column(name="ONLINE") |
|
||||
private String online; |
|
||||
|
|
||||
/** |
|
||||
* 经度 |
|
||||
*/ |
|
||||
@ApiModelProperty("经度") |
|
||||
@Column(name="LONGITUDE") |
|
||||
private double longitude; |
|
||||
|
|
||||
/** |
|
||||
* 纬度 |
|
||||
*/ |
|
||||
@ApiModelProperty("纬度") |
|
||||
@Column(name="LATITUDE") |
|
||||
private double latitude; |
|
||||
|
|
||||
public String getChannelId() { |
|
||||
return channelId; |
|
||||
} |
|
||||
|
|
||||
public void setChannelId(String channelId) { |
|
||||
this.channelId = channelId; |
|
||||
} |
|
||||
|
|
||||
public String getDeviceId() { |
|
||||
return deviceId; |
|
||||
} |
|
||||
|
|
||||
public void setDeviceId(String deviceId) { |
|
||||
this.deviceId = deviceId; |
|
||||
} |
|
||||
|
|
||||
public String getChannelName() { |
|
||||
return channelName; |
|
||||
} |
|
||||
|
|
||||
public void setChannelName(String channelName) { |
|
||||
this.channelName = channelName; |
|
||||
} |
|
||||
|
|
||||
public String getManufacture() { |
|
||||
return manufacture; |
|
||||
} |
|
||||
|
|
||||
public void setManufacture(String manufacture) { |
|
||||
this.manufacture = manufacture; |
|
||||
} |
|
||||
|
|
||||
public String getModel() { |
|
||||
return model; |
|
||||
} |
|
||||
|
|
||||
public void setModel(String model) { |
|
||||
this.model = model; |
|
||||
} |
|
||||
|
|
||||
public String getOwner() { |
|
||||
return owner; |
|
||||
} |
|
||||
|
|
||||
public void setOwner(String owner) { |
|
||||
this.owner = owner; |
|
||||
} |
|
||||
|
|
||||
public String getCivilCode() { |
|
||||
return civilCode; |
|
||||
} |
|
||||
|
|
||||
public void setCivilCode(String civilCode) { |
|
||||
this.civilCode = civilCode; |
|
||||
} |
|
||||
|
|
||||
public String getBlock() { |
|
||||
return block; |
|
||||
} |
|
||||
|
|
||||
public void setBlock(String block) { |
|
||||
this.block = block; |
|
||||
} |
|
||||
|
|
||||
public String getAddress() { |
|
||||
return address; |
|
||||
} |
|
||||
|
|
||||
public void setAddress(String address) { |
|
||||
this.address = address; |
|
||||
} |
|
||||
|
|
||||
public String getParental() { |
|
||||
return parental; |
|
||||
} |
|
||||
|
|
||||
public void setParental(String parental) { |
|
||||
this.parental = parental; |
|
||||
} |
|
||||
|
|
||||
public String getParentId() { |
|
||||
return parentId; |
|
||||
} |
|
||||
|
|
||||
public void setParentId(String parentId) { |
|
||||
this.parentId = parentId; |
|
||||
} |
|
||||
|
|
||||
public String getSafetyWay() { |
|
||||
return safetyWay; |
|
||||
} |
|
||||
|
|
||||
public void setSafetyWay(String safetyWay) { |
|
||||
this.safetyWay = safetyWay; |
|
||||
} |
|
||||
|
|
||||
public String getRegisterWay() { |
|
||||
return registerWay; |
|
||||
} |
|
||||
|
|
||||
public void setRegisterWay(String registerWay) { |
|
||||
this.registerWay = registerWay; |
|
||||
} |
|
||||
|
|
||||
public String getCertNum() { |
|
||||
return certNum; |
|
||||
} |
|
||||
|
|
||||
public void setCertNum(String certNum) { |
|
||||
this.certNum = certNum; |
|
||||
} |
|
||||
|
|
||||
public String getCertValid() { |
|
||||
return certValid; |
|
||||
} |
|
||||
|
|
||||
public void setCertValid(String certValid) { |
|
||||
this.certValid = certValid; |
|
||||
} |
|
||||
|
|
||||
public String getCertErrCode() { |
|
||||
return certErrCode; |
|
||||
} |
|
||||
|
|
||||
public void setCertErrCode(String certErrCode) { |
|
||||
this.certErrCode = certErrCode; |
|
||||
} |
|
||||
|
|
||||
public String getCertEndTime() { |
|
||||
return certEndTime; |
|
||||
} |
|
||||
|
|
||||
public void setCertEndTime(String certEndTime) { |
|
||||
this.certEndTime = certEndTime; |
|
||||
} |
|
||||
|
|
||||
public String getSecrecy() { |
|
||||
return secrecy; |
|
||||
} |
|
||||
|
|
||||
public void setSecrecy(String secrecy) { |
|
||||
this.secrecy = secrecy; |
|
||||
} |
|
||||
|
|
||||
public String getIp() { |
|
||||
return ip; |
|
||||
} |
|
||||
|
|
||||
public void setIp(String ip) { |
|
||||
this.ip = ip; |
|
||||
} |
|
||||
|
|
||||
public Integer getPort() { |
|
||||
return port; |
|
||||
} |
|
||||
|
|
||||
public void setPort(Integer port) { |
|
||||
this.port = port; |
|
||||
} |
|
||||
|
|
||||
public String getPassword() { |
|
||||
return password; |
|
||||
} |
|
||||
|
|
||||
public void setPassword(String password) { |
|
||||
this.password = password; |
|
||||
} |
|
||||
|
|
||||
public String getOnline() { |
|
||||
return online; |
|
||||
} |
|
||||
|
|
||||
public void setOnline(String online) { |
|
||||
this.online = online; |
|
||||
} |
|
||||
|
|
||||
public double getLongitude() { |
|
||||
return longitude; |
|
||||
} |
|
||||
|
|
||||
public void setLongitude(double longitude) { |
|
||||
this.longitude = longitude; |
|
||||
} |
|
||||
|
|
||||
public double getLatitude() { |
|
||||
return latitude; |
|
||||
} |
|
||||
|
|
||||
public void setLatitude(double latitude) { |
|
||||
this.latitude = latitude; |
|
||||
} |
|
||||
} |
|
@ -1,3 +1,3 @@ |
|||||
spring: |
spring: |
||||
profiles: |
profiles: |
||||
active: dev |
active: local |
Binary file not shown.
Loading…
Reference in new issue