yang_shj
9 months ago
18 changed files with 67 additions and 547 deletions
@ -1,9 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.constants; |
||||
|
||||
/** |
||||
* @author YSJ |
||||
*/ |
||||
public interface AlertDefectConfigConstant { |
||||
|
||||
String ALERT_SOURCE_CODE = "XTGJ"; |
||||
} |
@ -1,41 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
import java.util.Date; |
||||
|
||||
@Data |
||||
@TableName("hzims_abnormal_alarm") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "数据中断告警对象") |
||||
public class AbnormalAlarmEntity extends BaseEntity { |
||||
|
||||
@ApiModelProperty("站点编码") |
||||
private String stationId; |
||||
|
||||
@ApiModelProperty("站点名称") |
||||
private String stationName; |
||||
|
||||
@ApiModelProperty("检查点") |
||||
private String realId; |
||||
|
||||
@ApiModelProperty("告警开始时间") |
||||
private Date startTime; |
||||
|
||||
@ApiModelProperty("告警结束时间") |
||||
private Date endTime; |
||||
|
||||
@ApiModelProperty("告警类型") |
||||
private String type; |
||||
|
||||
@ApiModelProperty("状态") |
||||
private Integer status; |
||||
|
||||
@ApiModelProperty("告警原因") |
||||
private String soeExplain; |
||||
} |
@ -1,20 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.entity; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author : YSJ |
||||
*/ |
||||
@Data |
||||
public class AlertDefectConfigEntity { |
||||
|
||||
@ApiModelProperty("主键ID") |
||||
private Integer id; |
||||
|
||||
@ApiModelProperty("告警类型") |
||||
private Integer alertType; |
||||
|
||||
@ApiModelProperty("是否开启缺陷保存 : 0-关闭 1 - 开启") |
||||
private Integer isOpen; |
||||
} |
@ -1,50 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author ysj |
||||
*/ |
||||
@Data |
||||
@TableName("hzims_history_abnormal_alarm") |
||||
@EqualsAndHashCode(callSuper = false) |
||||
@ApiModel(value = "数据中断告警对象") |
||||
public class HistoryAbnormalAlarmEntity extends BaseEntity { |
||||
|
||||
@ApiModelProperty("ID") |
||||
private Long id; |
||||
|
||||
@ApiModelProperty("站点编码") |
||||
private String stationId; |
||||
|
||||
@ApiModelProperty("站点名称") |
||||
private String stationName; |
||||
|
||||
@ApiModelProperty("告警编码") |
||||
private Long alarmId; |
||||
|
||||
@ApiModelProperty("检查点") |
||||
private String realId; |
||||
|
||||
@ApiModelProperty("告警开始时间") |
||||
private Date startTime; |
||||
|
||||
@ApiModelProperty("告警结束时间") |
||||
private Date endTime; |
||||
|
||||
@ApiModelProperty("告警类型") |
||||
private String type; |
||||
|
||||
@ApiModelProperty("状态") |
||||
private Integer status; |
||||
|
||||
@ApiModelProperty("告警原因") |
||||
private String soeExplain; |
||||
} |
@ -1,66 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import io.swagger.models.auth.In; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author ysj |
||||
*/ |
||||
@Data |
||||
@TableName("hzims_history_level_alarm") |
||||
@EqualsAndHashCode(callSuper = false) |
||||
@ApiModel(value = "数据中断告警对象") |
||||
public class HistoryLevelAlarmEntity extends BaseEntity { |
||||
|
||||
@ApiModelProperty("ID") |
||||
private Long id; |
||||
|
||||
@ApiModelProperty("站点编码") |
||||
private String stationId; |
||||
|
||||
@ApiModelProperty("站点名称") |
||||
private String stationName; |
||||
|
||||
@ApiModelProperty("设备编码") |
||||
private String deviceCode; |
||||
|
||||
@ApiModelProperty("设备名称") |
||||
private String deviceName; |
||||
|
||||
@ApiModelProperty("告警等级") |
||||
private String alarmLevel; |
||||
|
||||
@ApiModelProperty("告警编码") |
||||
private String alarmId; |
||||
|
||||
@ApiModelProperty("检查点") |
||||
private String realId; |
||||
|
||||
@ApiModelProperty("告警开始时间") |
||||
private Date alarmTime; |
||||
|
||||
@ApiModelProperty("告警类型") |
||||
private String type; |
||||
|
||||
@ApiModelProperty("状态") |
||||
private Integer status; |
||||
|
||||
@ApiModelProperty("告警原因") |
||||
private String soeExplain; |
||||
|
||||
@ApiModelProperty(value = "告警所属类型:0-系统告警 1-智能告警") |
||||
@TableField(exist=false) |
||||
private Integer alarmType; |
||||
|
||||
@ApiModelProperty(value = "告警是否处理") |
||||
@TableField(exist=false) |
||||
private Boolean isHandle; |
||||
} |
@ -1,44 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.vo; |
||||
|
||||
import com.hnac.hzinfo.datasearch.soe.domian.SoeData; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/23 14:06:27 |
||||
* @version 4.0.0 |
||||
*/ |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@Data |
||||
public class AlarmDataVo extends SoeData { |
||||
|
||||
@ApiModelProperty(value = "数量") |
||||
private Integer count; |
||||
|
||||
@ApiModelProperty(value = "站点编号") |
||||
private String stationCode; |
||||
|
||||
@ApiModelProperty(value = "站点名称") |
||||
private String stationName; |
||||
|
||||
@ApiModelProperty(value = "内容") |
||||
private String content; |
||||
|
||||
@ApiModelProperty(value = "是否绑定") |
||||
private Boolean isBinding; |
||||
|
||||
@ApiModelProperty(value = "站点类型: 2-待运维 1-云服务") |
||||
private String serveType; |
||||
|
||||
@ApiModelProperty(value = "告警类型") |
||||
private String type; |
||||
|
||||
@ApiModelProperty(value = "告警所属类型:0-系统告警 1-智能告警") |
||||
private Integer alarmType; |
||||
|
||||
@ApiModelProperty(value = "告警是否处理") |
||||
private Boolean isHandle; |
||||
|
||||
} |
@ -1,48 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.vo; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import io.swagger.models.auth.In; |
||||
import lombok.Data; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/17 10:02:33 |
||||
* @version 4.0.0 |
||||
*/ |
||||
@Data |
||||
public class AlarmMergeVo{ |
||||
|
||||
@ApiModelProperty("站点编号") |
||||
private String stationCode; |
||||
|
||||
@ApiModelProperty("站点名称") |
||||
private String stationName; |
||||
|
||||
@ApiModelProperty("检测点位") |
||||
private String realId; |
||||
|
||||
@ApiModelProperty("告警编号") |
||||
private String alarmCode; |
||||
|
||||
@ApiModelProperty("告警等级") |
||||
private String level; |
||||
|
||||
@ApiModelProperty("告警类型") |
||||
private String type; |
||||
|
||||
@ApiModelProperty("类型:0-系统告警、2-智能告警") |
||||
private Integer alarmType; |
||||
|
||||
@ApiModelProperty("告警内容") |
||||
private String content; |
||||
|
||||
@ApiModelProperty("告警时间") |
||||
@DateTimeFormat(pattern = DateUtil.PATTERN_DATE) |
||||
@JsonFormat(pattern = DateUtil.PATTERN_DATE) |
||||
private Date date; |
||||
} |
@ -1,30 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.vo; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/23 13:34:37 |
||||
* @version 4.0.0 |
||||
*/ |
||||
@Data |
||||
public class AlarmParamVo { |
||||
|
||||
@ApiModelProperty(value = "查询开始时间:yyyy-MM-dd HH:mm:ss") |
||||
private String date; |
||||
|
||||
@ApiModelProperty(value = "默认,系统,告警,故障,用户操作,遥测越限,遥信变位,注册信息,信息提示,设备巡检,遥控操作,遥测越限恢复,未定义,通讯中断,数据异常") |
||||
private String type; |
||||
|
||||
@ApiModelProperty(value = "当前页码") |
||||
private Integer current; |
||||
|
||||
|
||||
@ApiModelProperty(value = "每页条目") |
||||
private Integer size; |
||||
|
||||
|
||||
@ApiModelProperty(value = "站点编码") |
||||
private String code; |
||||
} |
@ -1,31 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.vo; |
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||
import com.fasterxml.jackson.databind.ser.std.NullSerializer; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/23 13:34:37 |
||||
* @version 4.0.0 |
||||
*/ |
||||
@Data |
||||
public class AlarmReustVo { |
||||
|
||||
@ApiModelProperty(value = "最新的时间") |
||||
private String date; |
||||
|
||||
@ApiModelProperty(value = "告警数据") |
||||
private List<AlarmDataVo> soeList; |
||||
|
||||
@ApiModelProperty(value = "数量统计") |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
private Integer count; |
||||
|
||||
@ApiModelProperty(value = "总条数") |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
private Long total; |
||||
} |
@ -1,36 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.vo; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* 告警对象 |
||||
*/ |
||||
@Data |
||||
public class AlertVo { |
||||
|
||||
|
||||
@ApiModelProperty("主键Id") |
||||
private String id; |
||||
|
||||
@ApiModelProperty("告警类型") |
||||
private String soeType; |
||||
|
||||
@ApiModelProperty("告警状态") |
||||
private String soeStatus; |
||||
|
||||
@ApiModelProperty("站点") |
||||
private String station; |
||||
|
||||
@ApiModelProperty("事件未定义(通道:2 模块:1 点号:2006)") |
||||
private String soeExplain; |
||||
|
||||
@ApiModelProperty("告警报警类型") |
||||
private String soeAlarmType; |
||||
|
||||
@ApiModelProperty("监测点位") |
||||
private String realid; |
||||
|
||||
@ApiModelProperty("时间") |
||||
private String ts; |
||||
} |
@ -1,30 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.vo; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/17 10:02:33 |
||||
* @version 4.0.0 |
||||
*/ |
||||
@Data |
||||
public class HandleQueryVo { |
||||
|
||||
@ApiModelProperty("处理人") |
||||
private String stationCode; |
||||
|
||||
@ApiModelProperty("处理人") |
||||
private Long handleUser; |
||||
|
||||
@ApiModelProperty("开始时间") |
||||
private Date startTime; |
||||
|
||||
@ApiModelProperty("结束时间") |
||||
private Date endTime; |
||||
|
||||
@ApiModelProperty("处理类型:1-延后 2-误报 3-缺陷 4-检修") |
||||
private Long handleWay; |
||||
} |
@ -1,42 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.vo; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
import java.util.Date; |
||||
import java.util.List; |
||||
|
||||
@Data |
||||
public class HistoryAlarmVo extends BaseEntity { |
||||
|
||||
@ApiModelProperty("ID") |
||||
private Long id; |
||||
|
||||
@ApiModelProperty("站点编码") |
||||
private String stationId; |
||||
|
||||
@ApiModelProperty("站点名称") |
||||
private String stationName; |
||||
|
||||
@ApiModelProperty("告警编码") |
||||
private Long alarmId; |
||||
|
||||
@ApiModelProperty("检查点") |
||||
private String realId; |
||||
|
||||
@ApiModelProperty("告警开始时间") |
||||
private Date startTime; |
||||
|
||||
@ApiModelProperty("告警结束时间") |
||||
private Date endTime; |
||||
|
||||
@ApiModelProperty("告警类型") |
||||
private List<String> type; |
||||
|
||||
@ApiModelProperty("状态") |
||||
private Integer status; |
||||
|
||||
@ApiModelProperty("告警原因") |
||||
private String soeExplain; |
||||
} |
@ -1,29 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.vo; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/23 13:34:37 |
||||
* @version 4.0.0 |
||||
*/ |
||||
@Data |
||||
public class SoeParamVo { |
||||
|
||||
@ApiModelProperty(value = "站点编码") |
||||
private String code; |
||||
|
||||
@ApiModelProperty(value = "查询开始时间:yyyy-MM-dd HH:mm:ss") |
||||
private String date; |
||||
|
||||
@ApiModelProperty(value = "2-告警,3-故障,5-遥测越限,13-通讯异常,14-数据异常") |
||||
private Integer type; |
||||
|
||||
@ApiModelProperty(value = "当前页码") |
||||
private Integer current; |
||||
|
||||
|
||||
@ApiModelProperty(value = "每页条目") |
||||
private Integer size; |
||||
} |
@ -1,31 +0,0 @@
|
||||
package com.hnac.hzims.operational.alert.vo; |
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||
import com.fasterxml.jackson.databind.ser.std.NullSerializer; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/23 13:34:37 |
||||
* @version 4.0.0 |
||||
*/ |
||||
@Data |
||||
public class SoeReustVo { |
||||
|
||||
@ApiModelProperty(value = "最新的时间") |
||||
private String date; |
||||
|
||||
@ApiModelProperty(value = "告警数据") |
||||
private List<AlarmDataVo> soeList; |
||||
|
||||
@ApiModelProperty(value = "数量统计") |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
private Integer count; |
||||
|
||||
@ApiModelProperty(value = "总条数") |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
private Long total; |
||||
} |
Loading…
Reference in new issue