Merge remote-tracking branch 'origin/wvp-28181-2.0' into wvp-28181-2.0
commit
60c4f767f0
|
@ -53,7 +53,6 @@ public class RedisPushStreamListMsgListener implements MessageListener {
|
||||||
boolean contains = allAppAndStream.contains(app + stream);
|
boolean contains = allAppAndStream.contains(app + stream);
|
||||||
//不存在就添加
|
//不存在就添加
|
||||||
if (!contains) {
|
if (!contains) {
|
||||||
streamPushItem.setStatus(false);
|
|
||||||
streamPushItem.setStreamType("push");
|
streamPushItem.setStreamType("push");
|
||||||
streamPushItem.setCreateTime(DateUtil.getNow());
|
streamPushItem.setCreateTime(DateUtil.getNow());
|
||||||
streamPushItem.setMediaServerId(mediaServerService.getDefaultMediaServer().getId());
|
streamPushItem.setMediaServerId(mediaServerService.getDefaultMediaServer().getId());
|
||||||
|
|
|
@ -116,7 +116,7 @@ public class StreamPushUploadFileHandler extends AnalysisEventListener<StreamPus
|
||||||
streamPushItem.setApp(streamPushExcelDto.getApp());
|
streamPushItem.setApp(streamPushExcelDto.getApp());
|
||||||
streamPushItem.setStream(streamPushExcelDto.getStream());
|
streamPushItem.setStream(streamPushExcelDto.getStream());
|
||||||
streamPushItem.setGbId(streamPushExcelDto.getGbId());
|
streamPushItem.setGbId(streamPushExcelDto.getGbId());
|
||||||
streamPushItem.setStatus(false);
|
streamPushItem.setStatus(streamPushExcelDto.getStatus());
|
||||||
streamPushItem.setStreamType("push");
|
streamPushItem.setStreamType("push");
|
||||||
streamPushItem.setCreateTime(DateUtil.getNow());
|
streamPushItem.setCreateTime(DateUtil.getNow());
|
||||||
streamPushItem.setMediaServerId(defaultMediaServerId);
|
streamPushItem.setMediaServerId(defaultMediaServerId);
|
||||||
|
|
|
@ -23,10 +23,10 @@ public interface PlatformGbStreamMapper {
|
||||||
|
|
||||||
@Insert("<script> " +
|
@Insert("<script> " +
|
||||||
"INSERT into platform_gb_stream " +
|
"INSERT into platform_gb_stream " +
|
||||||
"(gbStreamId, platformId, catalogId) " +
|
"(gbStreamId, platformId, catalogId,status) " +
|
||||||
"values " +
|
"values " +
|
||||||
"<foreach collection='streamPushItems' index='index' item='item' separator=','> " +
|
"<foreach collection='streamPushItems' index='index' item='item' separator=','> " +
|
||||||
"(${item.gbStreamId}, '${item.platformId}', '${item.catalogId}')" +
|
"(${item.gbStreamId}, '${item.platformId}', '${item.catalogId}'), '${item.status}')" +
|
||||||
"</foreach> " +
|
"</foreach> " +
|
||||||
"</script>")
|
"</script>")
|
||||||
int batchAdd(List<StreamPushItem> streamPushItems);
|
int batchAdd(List<StreamPushItem> streamPushItems);
|
||||||
|
|
|
@ -22,6 +22,9 @@ public class StreamPushExcelDto {
|
||||||
@ExcelProperty("目录ID")
|
@ExcelProperty("目录ID")
|
||||||
private String catalogId;
|
private String catalogId;
|
||||||
|
|
||||||
|
@ExcelProperty("在线状态")
|
||||||
|
private boolean status;
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -70,4 +73,16 @@ public class StreamPushExcelDto {
|
||||||
public void setCatalogId(String catalogId) {
|
public void setCatalogId(String catalogId) {
|
||||||
this.catalogId = catalogId;
|
this.catalogId = catalogId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(boolean status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue