diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/CommonGBChannelMapper.java b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/CommonGBChannelMapper.java index 0d61060f..507f8dd8 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/CommonGBChannelMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/CommonGBChannelMapper.java @@ -250,12 +250,6 @@ public interface CommonGBChannelMapper { ""}) void batchDelete(List channelListInDb); - @SelectProvider(type = ChannelProvider.class, method = "queryByStreamPushId") - CommonGBChannel queryByStreamPushId(@Param("streamPushId") Integer streamPushId); - - @SelectProvider(type = ChannelProvider.class, method = "queryByStreamProxyId") - CommonGBChannel queryByStreamProxyId(@Param("streamProxyId") Integer streamProxyId); - @SelectProvider(type = ChannelProvider.class, method = "queryListByCivilCode") List queryListByCivilCode(@Param("query") String query, @Param("online") Boolean online, @Param("channelType") Integer channelType, @Param("civilCode") String civilCode); diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/provider/ChannelProvider.java b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/provider/ChannelProvider.java index 16170d76..8997dcb6 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/provider/ChannelProvider.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/provider/ChannelProvider.java @@ -13,8 +13,8 @@ public class ChannelProvider { public final static String BASE_SQL = "select\n" + " id as gb_id,\n" + " device_db_id as gb_device_db_id,\n" + - " stream_push_id,\n" + - " stream_proxy_id,\n" + + " data_type,\n" + + " data_device_id,\n" + " create_time,\n" + " update_time,\n" + " record_plan_id,\n" + @@ -60,7 +60,7 @@ public class ChannelProvider { " wdc.id as gb_id,\n" + " wdc.device_db_id as gb_device_db_id,\n" + " wdc.stream_push_id,\n" + - " wdc.stream_proxy_id,\n" + + " wdc.data_device_id,\n" + " wdc.create_time,\n" + " wdc.update_time,\n" + " coalesce(wpgc.custom_device_id, wdc.gb_device_id, wdc.device_id) as gb_device_id,\n" + @@ -109,19 +109,10 @@ public class ChannelProvider { return BASE_SQL + " where channel_type = 0 and id = #{gbId}"; } - public String queryByStreamPushId(Map params ){ - return BASE_SQL + " where channel_type = 0 and stream_push_id = #{streamPushId}"; - } - public String queryByDataId(Map params ){ - return BASE_SQL + " where data_type = #{dataType} and data_device_id = #{dataDeviceId}"; + return BASE_SQL + " where channel_type = 0 and data_type = #{dataType} and data_device_id = #{dataDeviceId}"; } - public String queryByStreamProxyId(Map params ){ - return BASE_SQL + " where channel_type = 0 and stream_proxy_id = #{streamProxyId}"; - } - - public String queryListByCivilCode(Map params ){ StringBuilder sqlBuild = new StringBuilder(); sqlBuild.append(BASE_SQL);