0
0

大屏数据

This commit is contained in:
2025-09-27 15:30:12 +08:00
parent b7c81419a4
commit 2d59397de5
32 changed files with 1032 additions and 39 deletions

View File

@ -114,5 +114,9 @@ public class DeviceAlarmBo extends TenantEntity {
*/
private Integer treatmentState;
/**
* 告警状态0 解除告警, 1 告警中
*/
private Integer alarmState;
}

View File

@ -0,0 +1,57 @@
package com.fuyuanshen.equipment.domain.vo;
import lombok.Data;
import java.io.Serializable;
/**
* 报警统计信息
*
* @author: fuyuanshen
* @date: 2025-09-27
*/
@Data
public class AlarmStatisticsVo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 正在报警数量(未处理的报警)
*/
private Integer activeAlarms = 0;
/**
* 报警总数
*/
private Integer totalAlarms = 0;
/**
* 已处理报警数量
*/
private Integer processedAlarms = 0;
/**
* 强制报警数量
* device_action = 0
*/
private Integer forcedAlarms = 0;
/**
* 撞击闯入报警数量
* device_action = 1
*/
private Integer intrusionImpactAlarms = 0;
/**
* 手动报警数量
* device_action = 2
*/
private Integer manualAlarms = 0;
/**
* 电子围栏告警数量
* device_action = 3
*/
private Integer geoFenceAlarms = 0;
}

View File

@ -123,6 +123,7 @@ public class DeviceAlarmVo implements Serializable {
private String durationTime;
/**
* 处理状态
* 0已处理1未处理
*/
@ExcelProperty(value = "0已处理1未处理")
@ -135,5 +136,4 @@ public class DeviceAlarmVo implements Serializable {
@Schema(name = "设备图片")
private String devicePic;
}

View File

@ -0,0 +1,39 @@
package com.fuyuanshen.equipment.domain.vo;
import lombok.Data;
import java.io.Serializable;
/**
* 设备通讯方式统计Vo
*
* @author: 默苍璃
* @date: 2025-09-27
*/
@Data
public class DeviceCommunicationModeStatisticsVo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 通讯方式名称
* 0:4G;1:蓝牙;2:4G&蓝牙
*/
private String communicationModeName;
/**
* 通讯方式值
* 0:4G;1:蓝牙;2:4G&蓝牙
*/
private Integer communicationModeValue;
/**
* 设备总数
*/
private Integer totalDevices = 0;
/**
* 异常设备数
*/
private Integer abnormalDevices = 0;
}

View File

@ -0,0 +1,36 @@
package com.fuyuanshen.equipment.domain.vo;
import com.fuyuanshen.equipment.domain.DeviceGeoFence;
import com.fuyuanshen.equipment.domain.dto.FenceCheckResponse;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 设备位置信息VO
*
* @author: 默苍璃
* @date: 2025-09-2714:33
*/
@Data
@Schema(description = "设备位置信息VO")
public class DeviceLocationVo {
@Schema(description = "设备ID")
private Long deviceId;
@Schema(description = "设备名称")
private String deviceName;
@Schema(description = "经度")
private String longitude;
@Schema(description = "纬度")
private String latitude;
@Schema(description = "设备是否在电子围栏内")
private Boolean inFence;
@Schema(description = "进入的电子围栏信息")
private DeviceGeoFence fenceInfo;
}

View File

@ -0,0 +1,32 @@
package com.fuyuanshen.equipment.domain.vo;
import lombok.Data;
import java.io.Serializable;
/**
* 设备总览信息
*
* @author: fuyuanshen
* @date: 2025-09-27
*/
@Data
public class DeviceOverviewVo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 设备总数
*/
private Integer totalDevices = 0;
/**
* 在线设备数量
*/
private Integer onlineDevices = 0;
/**
* 设备型号数量
*/
private Integer deviceTypes = 0;
}

View File

@ -0,0 +1,27 @@
package com.fuyuanshen.equipment.domain.vo;
import lombok.Data;
import java.io.Serializable;
/**
* 设备使用频次统计Vo
*
* @author: 默苍璃
* @date: 2025-09-27
*/
@Data
public class DeviceUsageFrequencyVo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 设备名称
*/
private String deviceName;
/**
* 使用频次
*/
private Integer frequency = 0;
}

View File

@ -0,0 +1,26 @@
package com.fuyuanshen.equipment.domain.vo;
import lombok.Data;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
* 每月告警统计信息
*
* @author: fuyuanshen
* @date: 2025-09-27
*/
@Data
public class MonthlyAlarmStatisticsVo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 每月告警统计数据
* key: 月份 (m1-m12)
* value: 告警数量
*/
private Map<String, Integer> monthlyStatistics = new HashMap<>();
}

View File

@ -0,0 +1,98 @@
package com.fuyuanshen.equipment.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
/**天气信息视图对象
* @author: 默苍璃
* @date: 2025-09-2715:25
*/
@Data
@Schema(description = "天气信息视图对象")
public class WeatherInfoVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* 经度
*/
@Schema(description = "经度")
private Double longitude;
/**
* 纬度
*/
@Schema(description = "纬度")
private Double latitude;
/**
* 天气状况
*/
@Schema(description = "天气状况")
private String weatherCondition;
/**
* 天气描述
*/
@Schema(description = "天气描述")
private String description;
/**
* 温度
*/
@Schema(description = "温度(摄氏度)")
private Double temperature;
/**
* 体感温度
*/
@Schema(description = "体感温度(摄氏度)")
private Double feelsLike;
/**
* 湿度
*/
@Schema(description = "湿度(%)")
private Integer humidity;
/**
* 气压
*/
@Schema(description = "气压(hPa)")
private Double pressure;
/**
* 能见度
*/
@Schema(description = "能见度(米)")
private Integer visibility;
/**
* 风速
*/
@Schema(description = "风速(m/s)")
private Double windSpeed;
/**
* 风向
*/
@Schema(description = "风向(度)")
private Integer windDirection;
/**
* 云量
*/
@Schema(description = "云量(%)")
private Integer cloudiness;
/**
* 更新时间
*/
@Schema(description = "数据更新时间")
private LocalDateTime updateTime;
}