去除多余字段

This commit is contained in:
648540858
2023-06-20 09:57:28 +08:00
parent 0532363192
commit d310204d00
9 changed files with 4 additions and 48 deletions

View File

@@ -40,7 +40,6 @@ public interface DeviceMapper {
"ssrc_check," +
"as_message_channel," +
"geo_coord_sys," +
"tree_type," +
"on_line," +
"media_server_id," +
"(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,"+
"as_message_channel,"+
"geo_coord_sys,"+
"tree_type,"+
"on_line"+
") VALUES (" +
"#{deviceId}," +
@@ -103,7 +101,6 @@ public interface DeviceMapper {
"#{ssrcCheck}," +
"#{asMessageChannel}," +
"#{geoCoordSys}," +
"#{treeType}," +
"#{onLine}" +
")")
int add(Device device);
@@ -158,7 +155,6 @@ public interface DeviceMapper {
"ssrc_check,"+
"as_message_channel,"+
"geo_coord_sys,"+
"tree_type,"+
"on_line,"+
"media_server_id,"+
"(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,"+
"as_message_channel,"+
"geo_coord_sys,"+
"tree_type,"+
"on_line"+
" FROM wvp_device WHERE on_line = true")
List<Device> getOnlineDevices();
@@ -230,7 +225,6 @@ public interface DeviceMapper {
"ssrc_check,"+
"as_message_channel,"+
"geo_coord_sys,"+
"tree_type,"+
"on_line"+
" FROM wvp_device WHERE ip = #{host} AND port=#{port}")
Device getDeviceByHostAndPort(String host, int port);
@@ -252,7 +246,6 @@ public interface DeviceMapper {
"<if test=\"ssrcCheck != null\">, ssrc_check=#{ssrcCheck}</if>" +
"<if test=\"asMessageChannel != null\">, as_message_channel=#{asMessageChannel}</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>" +
"WHERE device_id=#{deviceId}"+
" </script>"})
@@ -269,7 +262,6 @@ public interface DeviceMapper {
"ssrc_check,"+
"as_message_channel,"+
"geo_coord_sys,"+
"tree_type,"+
"on_line,"+
"media_server_id"+
") VALUES (" +
@@ -283,7 +275,6 @@ public interface DeviceMapper {
"#{ssrcCheck}," +
"#{asMessageChannel}," +
"#{geoCoordSys}," +
"#{treeType}," +
"#{onLine}," +
"#{mediaServerId}" +
")")

View File

@@ -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,"+
"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}, " +
" #{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);
@Update("UPDATE wvp_platform " +
@@ -47,7 +47,6 @@ public interface ParentPlatformMapper {
"administrative_division=#{administrativeDivision}, " +
"create_time=#{createTime}, " +
"update_time=#{updateTime}, " +
"tree_type=#{treeType}, " +
"catalog_id=#{catalogId} " +
"WHERE id=#{id}")
int updateParentPlatform(ParentPlatform parentPlatform);