fuliqi
2024-09-11 b14531e3b850fe6d2fa916ba7b88b3e2bd2ff30a
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/VideoOnlineResult.java
@@ -55,6 +55,10 @@
     */
    private Integer icmpStatus;
    /**
     * icmp状态  2/1/-1/0   全部/在线/离线/未知
     */
    private String icmpStatusText;
    /**
     * 最近icmp时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@@ -101,6 +105,10 @@
     */
    private Integer status;
    /**
     * 在线状态  2/1/-1/0   全部/在线/离线/未知
     */
    private String statusText;
    /**
     * 省厅标签
     */
    private String tagStr;
@@ -122,4 +130,35 @@
    @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;
    }
}