fuliqi
2024-09-30 b5df1cee65f3e9dcf554efcd3f1642a8c79d1e76
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/VideoOnlineResult.java
@@ -1,5 +1,6 @@
package com.ycl.platform.domain.result.UY;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ycl.platform.domain.result.BaseResult;
import lombok.Data;
import org.springframework.data.mongodb.core.index.TextIndexed;
@@ -54,8 +55,13 @@
     */
    private Integer icmpStatus;
    /**
     * icmp状态  2/1/-1/0   全部/在线/离线/未知
     */
    private String icmpStatusText;
    /**
     * 最近icmp时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date icmpTime;
    /**
     * 关键帧时延
@@ -72,6 +78,7 @@
    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date olErrEverduringFirstTime;
    /**
     * 累计离线故障次数
@@ -98,6 +105,10 @@
     */
    private Integer status;
    /**
     * 在线状态  2/1/-1/0   全部/在线/离线/未知
     */
    private String statusText;
    /**
     * 省厅标签
     */
    private String tagStr;
@@ -116,6 +127,38 @@
    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date vqdTime;
    public String getIcmpStatusText() {
        if (icmpStatus == 2) {
            this.icmpStatusText = "全部";
        }
        if (icmpStatus == 1) {
            this.icmpStatusText = "在线";
        }
        if (icmpStatus == -1) {
            this.icmpStatusText = "离线";
        }
        if (icmpStatus == 0) {
            this.icmpStatusText = "未知";
        }
        return icmpStatusText;
    }
    public String getStatusText() {
        if (status == 2) {
            this.statusText = "全部";
        }
        if (status == 1) {
            this.statusText = "在线";
        }
        if (status == -1) {
            this.statusText = "离线";
        }
        if (status == 0) {
            this.statusText = "未知";
        }
        return statusText;
    }
}