去除多余字段
This commit is contained in:
parent
0532363192
commit
d310204d00
@ -38,7 +38,7 @@ alter table device
|
|||||||
change geoCoordSys geo_coord_sys varchar(50) not null;
|
change geoCoordSys geo_coord_sys varchar(50) not null;
|
||||||
|
|
||||||
alter table device
|
alter table device
|
||||||
change treeType tree_type varchar(50) not null;
|
drop column treeType;
|
||||||
|
|
||||||
alter table device
|
alter table device
|
||||||
change mediaServerId media_server_id varchar(50) default 'auto' null;
|
change mediaServerId media_server_id varchar(50) default 'auto' null;
|
||||||
@ -297,7 +297,7 @@ alter table parent_platform
|
|||||||
change updateTime update_time varchar(50) null;
|
change updateTime update_time varchar(50) null;
|
||||||
|
|
||||||
alter table parent_platform
|
alter table parent_platform
|
||||||
change treeType tree_type varchar(50) not null;
|
drop column treeType;
|
||||||
|
|
||||||
alter table parent_platform
|
alter table parent_platform
|
||||||
change asMessageChannel as_message_channel bool default false;
|
change asMessageChannel as_message_channel bool default false;
|
||||||
|
@ -24,7 +24,6 @@ create table wvp_device (
|
|||||||
charset character varying(50),
|
charset character varying(50),
|
||||||
ssrc_check bool default false,
|
ssrc_check bool default false,
|
||||||
geo_coord_sys character varying(50),
|
geo_coord_sys character varying(50),
|
||||||
tree_type character varying(50),
|
|
||||||
media_server_id character varying(50),
|
media_server_id character varying(50),
|
||||||
custom_name character varying(255),
|
custom_name character varying(255),
|
||||||
sdp_ip character varying(50),
|
sdp_ip character varying(50),
|
||||||
@ -187,7 +186,6 @@ create table wvp_platform (
|
|||||||
catalog_group integer,
|
catalog_group integer,
|
||||||
create_time character varying(50),
|
create_time character varying(50),
|
||||||
update_time character varying(50),
|
update_time character varying(50),
|
||||||
tree_type character varying(50),
|
|
||||||
as_message_channel bool default false,
|
as_message_channel bool default false,
|
||||||
constraint uk_platform_unique_server_gb_id unique (server_gb_id)
|
constraint uk_platform_unique_server_gb_id unique (server_gb_id)
|
||||||
);
|
);
|
||||||
|
@ -173,12 +173,6 @@ public class Device {
|
|||||||
@Schema(description = "地理坐标系, 目前支持 WGS84,GCJ02")
|
@Schema(description = "地理坐标系, 目前支持 WGS84,GCJ02")
|
||||||
private String geoCoordSys;
|
private String geoCoordSys;
|
||||||
|
|
||||||
/**
|
|
||||||
* 树类型 国标规定了两种树的展现方式 行政区划:CivilCode 和业务分组:BusinessGroup
|
|
||||||
*/
|
|
||||||
@Schema(description = "树类型 国标规定了两种树的展现方式 行政区划:CivilCode 和业务分组:BusinessGroup")
|
|
||||||
private String treeType;
|
|
||||||
|
|
||||||
@Schema(description = "密码")
|
@Schema(description = "密码")
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
@ -406,14 +400,6 @@ public class Device {
|
|||||||
this.geoCoordSys = geoCoordSys;
|
this.geoCoordSys = geoCoordSys;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTreeType() {
|
|
||||||
return treeType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTreeType(String treeType) {
|
|
||||||
this.treeType = treeType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
|
@ -183,12 +183,6 @@ public class ParentPlatform {
|
|||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
private String createTime;
|
private String createTime;
|
||||||
|
|
||||||
/**
|
|
||||||
* 树类型 国标规定了两种树的展现方式 行政区划 CivilCode 和业务分组:BusinessGroup
|
|
||||||
*/
|
|
||||||
@Schema(description = "树类型 国标规定了两种树的展现方式 行政区划 CivilCode 和业务分组:BusinessGrou")
|
|
||||||
private String treeType;
|
|
||||||
|
|
||||||
@Schema(description = "是否作为消息通道")
|
@Schema(description = "是否作为消息通道")
|
||||||
private boolean asMessageChannel;
|
private boolean asMessageChannel;
|
||||||
|
|
||||||
@ -424,14 +418,6 @@ public class ParentPlatform {
|
|||||||
this.createTime = createTime;
|
this.createTime = createTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTreeType() {
|
|
||||||
return treeType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTreeType(String treeType) {
|
|
||||||
this.treeType = treeType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isAsMessageChannel() {
|
public boolean isAsMessageChannel() {
|
||||||
return asMessageChannel;
|
return asMessageChannel;
|
||||||
}
|
}
|
||||||
|
@ -164,7 +164,6 @@ public class RegisterRequestProcessor extends SIPRequestProcessorParent implemen
|
|||||||
device.setStreamMode("UDP");
|
device.setStreamMode("UDP");
|
||||||
device.setCharset("GB2312");
|
device.setCharset("GB2312");
|
||||||
device.setGeoCoordSys("WGS84");
|
device.setGeoCoordSys("WGS84");
|
||||||
device.setTreeType("CivilCode");
|
|
||||||
device.setDeviceId(deviceId);
|
device.setDeviceId(deviceId);
|
||||||
device.setOnLine(false);
|
device.setOnLine(false);
|
||||||
}
|
}
|
||||||
|
@ -470,7 +470,6 @@ public class DeviceServiceImpl implements IDeviceService {
|
|||||||
}
|
}
|
||||||
deviceInStore.setSdpIp(device.getSdpIp());
|
deviceInStore.setSdpIp(device.getSdpIp());
|
||||||
deviceInStore.setCharset(device.getCharset());
|
deviceInStore.setCharset(device.getCharset());
|
||||||
deviceInStore.setTreeType(device.getTreeType());
|
|
||||||
|
|
||||||
// 目录订阅相关的信息
|
// 目录订阅相关的信息
|
||||||
if (device.getSubscribeCycleForCatalog() > 0) {
|
if (device.getSubscribeCycleForCatalog() > 0) {
|
||||||
|
@ -130,8 +130,6 @@ public class PlatformServiceImpl implements IPlatformService {
|
|||||||
@Override
|
@Override
|
||||||
public boolean update(ParentPlatform parentPlatform) {
|
public boolean update(ParentPlatform parentPlatform) {
|
||||||
logger.info("[国标级联]更新平台 {}", parentPlatform.getDeviceGBId());
|
logger.info("[国标级联]更新平台 {}", parentPlatform.getDeviceGBId());
|
||||||
// TODO 后续版本去除
|
|
||||||
parentPlatform.setTreeType("");
|
|
||||||
parentPlatform.setCharacterSet(parentPlatform.getCharacterSet().toUpperCase());
|
parentPlatform.setCharacterSet(parentPlatform.getCharacterSet().toUpperCase());
|
||||||
ParentPlatform parentPlatformOld = platformMapper.getParentPlatById(parentPlatform.getId());
|
ParentPlatform parentPlatformOld = platformMapper.getParentPlatById(parentPlatform.getId());
|
||||||
ParentPlatformCatch parentPlatformCatchOld = redisCatchStorage.queryPlatformCatchInfo(parentPlatformOld.getServerGBId());
|
ParentPlatformCatch parentPlatformCatchOld = redisCatchStorage.queryPlatformCatchInfo(parentPlatformOld.getServerGBId());
|
||||||
|
@ -40,7 +40,6 @@ public interface DeviceMapper {
|
|||||||
"ssrc_check," +
|
"ssrc_check," +
|
||||||
"as_message_channel," +
|
"as_message_channel," +
|
||||||
"geo_coord_sys," +
|
"geo_coord_sys," +
|
||||||
"tree_type," +
|
|
||||||
"on_line," +
|
"on_line," +
|
||||||
"media_server_id," +
|
"media_server_id," +
|
||||||
"(SELECT count(0) FROM wvp_device_channel WHERE device_id=wvp_device.device_id) as channel_count "+
|
"(SELECT count(0) FROM wvp_device_channel WHERE device_id=wvp_device.device_id) as channel_count "+
|
||||||
@ -74,7 +73,6 @@ public interface DeviceMapper {
|
|||||||
"ssrc_check,"+
|
"ssrc_check,"+
|
||||||
"as_message_channel,"+
|
"as_message_channel,"+
|
||||||
"geo_coord_sys,"+
|
"geo_coord_sys,"+
|
||||||
"tree_type,"+
|
|
||||||
"on_line"+
|
"on_line"+
|
||||||
") VALUES (" +
|
") VALUES (" +
|
||||||
"#{deviceId}," +
|
"#{deviceId}," +
|
||||||
@ -103,7 +101,6 @@ public interface DeviceMapper {
|
|||||||
"#{ssrcCheck}," +
|
"#{ssrcCheck}," +
|
||||||
"#{asMessageChannel}," +
|
"#{asMessageChannel}," +
|
||||||
"#{geoCoordSys}," +
|
"#{geoCoordSys}," +
|
||||||
"#{treeType}," +
|
|
||||||
"#{onLine}" +
|
"#{onLine}" +
|
||||||
")")
|
")")
|
||||||
int add(Device device);
|
int add(Device device);
|
||||||
@ -158,7 +155,6 @@ public interface DeviceMapper {
|
|||||||
"ssrc_check,"+
|
"ssrc_check,"+
|
||||||
"as_message_channel,"+
|
"as_message_channel,"+
|
||||||
"geo_coord_sys,"+
|
"geo_coord_sys,"+
|
||||||
"tree_type,"+
|
|
||||||
"on_line,"+
|
"on_line,"+
|
||||||
"media_server_id,"+
|
"media_server_id,"+
|
||||||
"(SELECT count(0) FROM wvp_device_channel WHERE device_id=de.device_id) as channel_count " +
|
"(SELECT count(0) FROM wvp_device_channel WHERE device_id=de.device_id) as channel_count " +
|
||||||
@ -199,7 +195,6 @@ public interface DeviceMapper {
|
|||||||
"ssrc_check,"+
|
"ssrc_check,"+
|
||||||
"as_message_channel,"+
|
"as_message_channel,"+
|
||||||
"geo_coord_sys,"+
|
"geo_coord_sys,"+
|
||||||
"tree_type,"+
|
|
||||||
"on_line"+
|
"on_line"+
|
||||||
" FROM wvp_device WHERE on_line = true")
|
" FROM wvp_device WHERE on_line = true")
|
||||||
List<Device> getOnlineDevices();
|
List<Device> getOnlineDevices();
|
||||||
@ -230,7 +225,6 @@ public interface DeviceMapper {
|
|||||||
"ssrc_check,"+
|
"ssrc_check,"+
|
||||||
"as_message_channel,"+
|
"as_message_channel,"+
|
||||||
"geo_coord_sys,"+
|
"geo_coord_sys,"+
|
||||||
"tree_type,"+
|
|
||||||
"on_line"+
|
"on_line"+
|
||||||
" FROM wvp_device WHERE ip = #{host} AND port=#{port}")
|
" FROM wvp_device WHERE ip = #{host} AND port=#{port}")
|
||||||
Device getDeviceByHostAndPort(String host, int port);
|
Device getDeviceByHostAndPort(String host, int port);
|
||||||
@ -252,7 +246,6 @@ public interface DeviceMapper {
|
|||||||
"<if test=\"ssrcCheck != null\">, ssrc_check=#{ssrcCheck}</if>" +
|
"<if test=\"ssrcCheck != null\">, ssrc_check=#{ssrcCheck}</if>" +
|
||||||
"<if test=\"asMessageChannel != null\">, as_message_channel=#{asMessageChannel}</if>" +
|
"<if test=\"asMessageChannel != null\">, as_message_channel=#{asMessageChannel}</if>" +
|
||||||
"<if test=\"geoCoordSys != null\">, geo_coord_sys=#{geoCoordSys}</if>" +
|
"<if test=\"geoCoordSys != null\">, geo_coord_sys=#{geoCoordSys}</if>" +
|
||||||
"<if test=\"treeType != null\">, tree_type=#{treeType}</if>" +
|
|
||||||
"<if test=\"mediaServerId != null\">, media_server_id=#{mediaServerId}</if>" +
|
"<if test=\"mediaServerId != null\">, media_server_id=#{mediaServerId}</if>" +
|
||||||
"WHERE device_id=#{deviceId}"+
|
"WHERE device_id=#{deviceId}"+
|
||||||
" </script>"})
|
" </script>"})
|
||||||
@ -269,7 +262,6 @@ public interface DeviceMapper {
|
|||||||
"ssrc_check,"+
|
"ssrc_check,"+
|
||||||
"as_message_channel,"+
|
"as_message_channel,"+
|
||||||
"geo_coord_sys,"+
|
"geo_coord_sys,"+
|
||||||
"tree_type,"+
|
|
||||||
"on_line,"+
|
"on_line,"+
|
||||||
"media_server_id"+
|
"media_server_id"+
|
||||||
") VALUES (" +
|
") VALUES (" +
|
||||||
@ -283,7 +275,6 @@ public interface DeviceMapper {
|
|||||||
"#{ssrcCheck}," +
|
"#{ssrcCheck}," +
|
||||||
"#{asMessageChannel}," +
|
"#{asMessageChannel}," +
|
||||||
"#{geoCoordSys}," +
|
"#{geoCoordSys}," +
|
||||||
"#{treeType}," +
|
|
||||||
"#{onLine}," +
|
"#{onLine}," +
|
||||||
"#{mediaServerId}" +
|
"#{mediaServerId}" +
|
||||||
")")
|
")")
|
||||||
|
@ -16,10 +16,10 @@ public interface ParentPlatformMapper {
|
|||||||
|
|
||||||
@Insert("INSERT INTO wvp_platform (enable, name, server_gb_id, server_gb_domain, server_ip, server_port,device_gb_id,device_ip,"+
|
@Insert("INSERT INTO wvp_platform (enable, name, server_gb_id, server_gb_domain, server_ip, server_port,device_gb_id,device_ip,"+
|
||||||
"device_port,username,password,expires,keep_timeout,transport,character_set,ptz,rtcp,as_message_channel,"+
|
"device_port,username,password,expires,keep_timeout,transport,character_set,ptz,rtcp,as_message_channel,"+
|
||||||
"status,start_offline_push,catalog_id,administrative_division,catalog_group,create_time,update_time,tree_type) " +
|
"status,start_offline_push,catalog_id,administrative_division,catalog_group,create_time,update_time) " +
|
||||||
" VALUES (#{enable}, #{name}, #{serverGBId}, #{serverGBDomain}, #{serverIP}, #{serverPort}, #{deviceGBId}, #{deviceIp}, " +
|
" VALUES (#{enable}, #{name}, #{serverGBId}, #{serverGBDomain}, #{serverIP}, #{serverPort}, #{deviceGBId}, #{deviceIp}, " +
|
||||||
" #{devicePort}, #{username}, #{password}, #{expires}, #{keepTimeout}, #{transport}, #{characterSet}, #{ptz}, #{rtcp}, #{asMessageChannel}, " +
|
" #{devicePort}, #{username}, #{password}, #{expires}, #{keepTimeout}, #{transport}, #{characterSet}, #{ptz}, #{rtcp}, #{asMessageChannel}, " +
|
||||||
" #{status}, #{startOfflinePush}, #{catalogId}, #{administrativeDivision}, #{catalogGroup}, #{createTime}, #{updateTime}, #{treeType})")
|
" #{status}, #{startOfflinePush}, #{catalogId}, #{administrativeDivision}, #{catalogGroup}, #{createTime}, #{updateTime})")
|
||||||
int addParentPlatform(ParentPlatform parentPlatform);
|
int addParentPlatform(ParentPlatform parentPlatform);
|
||||||
|
|
||||||
@Update("UPDATE wvp_platform " +
|
@Update("UPDATE wvp_platform " +
|
||||||
@ -47,7 +47,6 @@ public interface ParentPlatformMapper {
|
|||||||
"administrative_division=#{administrativeDivision}, " +
|
"administrative_division=#{administrativeDivision}, " +
|
||||||
"create_time=#{createTime}, " +
|
"create_time=#{createTime}, " +
|
||||||
"update_time=#{updateTime}, " +
|
"update_time=#{updateTime}, " +
|
||||||
"tree_type=#{treeType}, " +
|
|
||||||
"catalog_id=#{catalogId} " +
|
"catalog_id=#{catalogId} " +
|
||||||
"WHERE id=#{id}")
|
"WHERE id=#{id}")
|
||||||
int updateParentPlatform(ParentPlatform parentPlatform);
|
int updateParentPlatform(ParentPlatform parentPlatform);
|
||||||
|
Loading…
Reference in New Issue
Block a user