修复通道导入bug
parent
21d5bed1a9
commit
4446218f9e
|
@ -366,7 +366,7 @@ public class StreamPushServiceImpl implements IStreamPushService {
|
||||||
// 存储数据到stream_push表
|
// 存储数据到stream_push表
|
||||||
streamPushMapper.addAll(streamPushItems);
|
streamPushMapper.addAll(streamPushItems);
|
||||||
List<StreamPushItem> streamPushItemForGbStream = streamPushItems.stream()
|
List<StreamPushItem> streamPushItemForGbStream = streamPushItems.stream()
|
||||||
.filter(streamPushItem-> streamPushItem.getId() != null)
|
.filter(streamPushItem-> streamPushItem.getGbId() != null)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
// 存储数据到gb_stream表, id会返回到streamPushItemForGbStream里
|
// 存储数据到gb_stream表, id会返回到streamPushItemForGbStream里
|
||||||
if (streamPushItemForGbStream.size() > 0) {
|
if (streamPushItemForGbStream.size() > 0) {
|
||||||
|
|
|
@ -56,7 +56,7 @@ public interface IVideoManagerStorage {
|
||||||
* @param count 每页数量
|
* @param count 每页数量
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public PageInfo queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, Boolean online, Boolean catalogUnderDevice, int page, int count);
|
public PageInfo<DeviceChannel> queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, Boolean online, Boolean catalogUnderDevice, int page, int count);
|
||||||
|
|
||||||
public List<DeviceChannel> queryChannelsByDeviceIdWithStartAndLimit(String deviceId, String query, Boolean hasSubChannel, Boolean online, int start, int limit,List<String> channelIds);
|
public List<DeviceChannel> queryChannelsByDeviceIdWithStartAndLimit(String deviceId, String query, Boolean hasSubChannel, Boolean online, int start, int limit,List<String> channelIds);
|
||||||
|
|
||||||
|
|
|
@ -1,43 +1,96 @@
|
||||||
package com.genersoft.iot.vmp.vmanager.bean;
|
package com.genersoft.iot.vmp.vmanager.bean;
|
||||||
|
|
||||||
import com.genersoft.iot.vmp.common.StreamInfo;
|
import com.genersoft.iot.vmp.common.StreamInfo;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
@Schema(description = "流信息")
|
||||||
public class StreamContent {
|
public class StreamContent {
|
||||||
|
|
||||||
|
@Schema(description = "应用名")
|
||||||
private String app;
|
private String app;
|
||||||
|
|
||||||
|
@Schema(description = "流ID")
|
||||||
private String stream;
|
private String stream;
|
||||||
|
|
||||||
|
@Schema(description = "IP")
|
||||||
private String ip;
|
private String ip;
|
||||||
|
|
||||||
|
@Schema(description = "HTTP-FLV流地址")
|
||||||
private String flv;
|
private String flv;
|
||||||
|
|
||||||
|
@Schema(description = "HTTPS-FLV流地址")
|
||||||
private String https_flv;
|
private String https_flv;
|
||||||
|
|
||||||
|
@Schema(description = "Websocket-FLV流地址")
|
||||||
private String ws_flv;
|
private String ws_flv;
|
||||||
|
|
||||||
|
@Schema(description = "Websockets-FLV流地址")
|
||||||
private String wss_flv;
|
private String wss_flv;
|
||||||
|
|
||||||
|
@Schema(description = "HTTP-FMP4流地址")
|
||||||
private String fmp4;
|
private String fmp4;
|
||||||
|
|
||||||
|
@Schema(description = "HTTPS-FMP4流地址")
|
||||||
private String https_fmp4;
|
private String https_fmp4;
|
||||||
|
|
||||||
|
@Schema(description = "Websocket-FMP4流地址")
|
||||||
private String ws_fmp4;
|
private String ws_fmp4;
|
||||||
|
|
||||||
|
@Schema(description = "Websockets-FMP4流地址")
|
||||||
private String wss_fmp4;
|
private String wss_fmp4;
|
||||||
|
|
||||||
|
@Schema(description = "HLS流地址")
|
||||||
private String hls;
|
private String hls;
|
||||||
|
|
||||||
|
@Schema(description = "HTTPS-HLS流地址")
|
||||||
private String https_hls;
|
private String https_hls;
|
||||||
|
|
||||||
|
@Schema(description = "Websocket-HLS流地址")
|
||||||
private String ws_hls;
|
private String ws_hls;
|
||||||
|
|
||||||
|
@Schema(description = "Websockets-HLS流地址")
|
||||||
private String wss_hls;
|
private String wss_hls;
|
||||||
|
|
||||||
|
@Schema(description = "HTTP-TS流地址")
|
||||||
private String ts;
|
private String ts;
|
||||||
|
|
||||||
|
@Schema(description = "HTTPS-TS流地址")
|
||||||
private String https_ts;
|
private String https_ts;
|
||||||
|
|
||||||
|
@Schema(description = "Websocket-TS流地址")
|
||||||
private String ws_ts;
|
private String ws_ts;
|
||||||
|
|
||||||
|
@Schema(description = "Websockets-TS流地址")
|
||||||
private String wss_ts;
|
private String wss_ts;
|
||||||
|
|
||||||
|
@Schema(description = "RTMP流地址")
|
||||||
private String rtmp;
|
private String rtmp;
|
||||||
|
|
||||||
|
@Schema(description = "RTMPS流地址")
|
||||||
private String rtmps;
|
private String rtmps;
|
||||||
|
|
||||||
|
@Schema(description = "RTSP流地址")
|
||||||
private String rtsp;
|
private String rtsp;
|
||||||
|
|
||||||
|
@Schema(description = "RTSPS流地址")
|
||||||
private String rtsps;
|
private String rtsps;
|
||||||
|
|
||||||
|
@Schema(description = "RTC流地址")
|
||||||
private String rtc;
|
private String rtc;
|
||||||
|
|
||||||
|
@Schema(description = "RTCS流地址")
|
||||||
private String rtcs;
|
private String rtcs;
|
||||||
|
|
||||||
|
@Schema(description = "流媒体ID")
|
||||||
private String mediaServerId;
|
private String mediaServerId;
|
||||||
|
|
||||||
|
@Schema(description = "流编码信息")
|
||||||
private Object tracks;
|
private Object tracks;
|
||||||
|
|
||||||
|
@Schema(description = "开始时间")
|
||||||
private String startTime;
|
private String startTime;
|
||||||
|
|
||||||
|
@Schema(description = "结束时间")
|
||||||
private String endTime;
|
private String endTime;
|
||||||
|
|
||||||
private double progress;
|
private double progress;
|
||||||
|
|
|
@ -123,7 +123,7 @@ public class DeviceQuery {
|
||||||
@Parameter(name = "online", description = "是否在线")
|
@Parameter(name = "online", description = "是否在线")
|
||||||
@Parameter(name = "channelType", description = "设备/子目录-> false/true")
|
@Parameter(name = "channelType", description = "设备/子目录-> false/true")
|
||||||
@Parameter(name = "catalogUnderDevice", description = "是否直属与设备的目录")
|
@Parameter(name = "catalogUnderDevice", description = "是否直属与设备的目录")
|
||||||
public PageInfo channels(@PathVariable String deviceId,
|
public PageInfo<DeviceChannel> channels(@PathVariable String deviceId,
|
||||||
int page, int count,
|
int page, int count,
|
||||||
@RequestParam(required = false) String query,
|
@RequestParam(required = false) String query,
|
||||||
@RequestParam(required = false) Boolean online,
|
@RequestParam(required = false) Boolean online,
|
||||||
|
@ -223,7 +223,7 @@ public class DeviceQuery {
|
||||||
@Parameter(name = "online", description = "是否在线")
|
@Parameter(name = "online", description = "是否在线")
|
||||||
@Parameter(name = "channelType", description = "设备/子目录-> false/true")
|
@Parameter(name = "channelType", description = "设备/子目录-> false/true")
|
||||||
@GetMapping("/sub_channels/{deviceId}/{channelId}/channels")
|
@GetMapping("/sub_channels/{deviceId}/{channelId}/channels")
|
||||||
public PageInfo subChannels(@PathVariable String deviceId,
|
public PageInfo<DeviceChannel> subChannels(@PathVariable String deviceId,
|
||||||
@PathVariable String channelId,
|
@PathVariable String channelId,
|
||||||
int page,
|
int page,
|
||||||
int count,
|
int count,
|
||||||
|
@ -237,8 +237,7 @@ public class DeviceQuery {
|
||||||
return deviceChannelPageResult;
|
return deviceChannelPageResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
PageInfo pageResult = storager.querySubChannels(deviceId, channelId, query, channelType, online, page, count);
|
return storager.querySubChannels(deviceId, channelId, query, channelType, online, page, count);
|
||||||
return pageResult;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue