|
@@ -7,6 +7,7 @@ import com.qmth.themis.business.enums.MonitorStatusSourceEnum;
|
|
|
import com.qmth.themis.business.enums.WebsocketStatusEnum;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
+import org.jetbrains.annotations.NotNull;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
import java.util.Objects;
|
|
@@ -19,7 +20,7 @@ import java.util.Objects;
|
|
|
* @Date: 2020/8/22
|
|
|
*/
|
|
|
@ApiModel("实时监控台视频返回对象")
|
|
|
-public class InvigilateListVideoBean implements Serializable {
|
|
|
+public class InvigilateListVideoBean implements Serializable, Comparable<InvigilateListVideoBean> {
|
|
|
|
|
|
@ApiModelProperty(name = "序号")
|
|
|
private Integer seq;
|
|
@@ -388,4 +389,15 @@ public class InvigilateListVideoBean implements Serializable {
|
|
|
public void setBreachStatus(Integer breachStatus) {
|
|
|
this.breachStatus = breachStatus;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int compareTo(@NotNull InvigilateListVideoBean o) {
|
|
|
+ if (Objects.nonNull(o.getMonitorLiveUrl())) {
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+ if (Objects.isNull(o.getMonitorLiveUrl())) {
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
}
|