调整代码对通道类型的调用
This commit is contained in:
@@ -550,4 +550,6 @@ public interface CommonGBChannelMapper {
|
||||
@Param("channelType") Integer channelType, @Param("online") Boolean online,
|
||||
@Param("hasLink") Boolean hasLink);
|
||||
|
||||
@SelectProvider(type = ChannelProvider.class, method = "queryByDataId")
|
||||
CommonGBChannel queryByDataId(@Param("dataType") Integer dataType, @Param("dataDeviceId") Integer dataDeviceId);
|
||||
}
|
||||
|
||||
@@ -113,6 +113,10 @@ public class ChannelProvider {
|
||||
return BASE_SQL + " where channel_type = 0 and stream_push_id = #{streamPushId}";
|
||||
}
|
||||
|
||||
public String queryByDataId(Map<String, Object> params ){
|
||||
return BASE_SQL + " where data_type = #{dataType} and data_device_id = #{dataDeviceId}";
|
||||
}
|
||||
|
||||
public String queryByStreamProxyId(Map<String, Object> params ){
|
||||
return BASE_SQL + " where channel_type = 0 and stream_proxy_id = #{streamProxyId}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user