修复数据库语法兼容以及redis接收推流信息导入

This commit is contained in:
648540858
2024-09-14 15:19:07 +08:00
parent a36c427394
commit 800d6c926a
21 changed files with 120 additions and 274 deletions

View File

@@ -0,0 +1,24 @@
package com.genersoft.iot.vmp.streamPush.bean;
import lombok.Data;
@Data
public class RedisPushStreamMessage {
private String gbId;
private String app;
private String stream;
private String name;
private boolean status;
public StreamPush buildstreamPush() {
StreamPush push = new StreamPush();
push.setApp(app);
push.setStream(stream);
push.setGbName(name);
push.setGbDeviceId(gbId);
push.setStartOfflinePush(true);
push.setGbStatus(status?"ON":"OFF");
return push;
}
}

View File

@@ -76,6 +76,8 @@ public class StreamPush extends CommonGBChannel implements Comparable<StreamPush
@Schema(description = "拉起离线推流")
private boolean startOfflinePush;
private String uniqueKey;
@Override
public int compareTo(@NotNull StreamPush streamPushItem) {
return Long.valueOf(DateUtil.yyyy_MM_dd_HH_mm_ssToTimestamp(this.createTime)