zxl
2025-06-24 3b0516a2959e25576e4f3fda697a3b025d06c8c9
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/VideoOnlineResult.java
@@ -30,7 +30,6 @@
    /**
     * 行政区划名称
     */
    @TextIndexed
    private String arealayerName;
    /**
@@ -54,6 +53,10 @@
     * icmp状态  2/1/-1/0   全部/在线/离线/未知
     */
    private Integer icmpStatus;
    /**
     * icmp状态  2/1/-1/0   全部/在线/离线/未知
     */
    private String icmpStatusText;
    /**
     * 最近icmp时间
     */
@@ -101,6 +104,10 @@
     */
    private Integer status;
    /**
     * 在线状态  2/1/-1/0   全部/在线/离线/未知
     */
    private String statusText;
    /**
     * 省厅标签
     */
    private String tagStr;
@@ -122,4 +129,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;
    }
}