tyty
1 year ago
21 changed files with 525 additions and 86 deletions
@ -1,9 +1,59 @@
|
||||
package com.hnac.hzims.alarm.constants; |
||||
|
||||
import com.sun.org.apache.bcel.internal.generic.NEW; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.Arrays; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author ysj |
||||
*/ |
||||
public interface AlarmConstants { |
||||
|
||||
public final static String APP_NAME = "hzims-alarm"; |
||||
String APP_NAME = "hzims-alarm"; |
||||
|
||||
// 1-集中监控右侧列表
|
||||
Integer IS_RIGHT_TABULATION = 1; |
||||
// 2-集中监控弹窗
|
||||
Integer IS_SHOW_ALERT = 2; |
||||
// 3-集中监控铃铛
|
||||
Integer IS_SMALL_BELL = 3; |
||||
// 4-集中监控遮罩
|
||||
Integer IS_MASK = 4; |
||||
// 5-语音播报
|
||||
Integer IS_BROADCAST = 5; |
||||
// 6-WEB/APP消息推送
|
||||
Integer IS_PLATFORM_MESSAGE = 6; |
||||
// 7-短信推送
|
||||
Integer IS_SHORT_MESSAGE = 7; |
||||
// 8-微信公众号消息推送
|
||||
Integer IS_WX_MESSAGE = 8; |
||||
|
||||
|
||||
// 告警来源 : 0- HZ3000告警 1 -等级告警 2 -条件告警 3-FDP智能预警
|
||||
Integer HZ3000_ALARM = 0; |
||||
Integer LEVEL_ALARM = 1; |
||||
Integer CONDITION_ALARM = 2; |
||||
Integer EARLY_WARNING = 3; |
||||
List<Integer> ALARAM_SOURCES = Arrays.asList(HZ3000_ALARM,LEVEL_ALARM,CONDITION_ALARM,EARLY_WARNING); |
||||
|
||||
// 子类告警
|
||||
// HZ3000告警 : 2-告警 3-故障 5-遥测越限 13-通讯中断 14-数据异常
|
||||
// 等级告警 : 21-一级告警 22-二级告警 23-三级告警
|
||||
// 智能预警 : 30-智能预警
|
||||
// 条件告警 : 40-条件告警
|
||||
Integer WARNING = 2; |
||||
Integer FAULT = 3; |
||||
Integer OFFSIDE = 5; |
||||
Integer INTERRUPT = 13; |
||||
Integer ABNORMAL = 14; |
||||
List<Integer> HZ3000_ALARAM = Arrays.asList(WARNING,FAULT,OFFSIDE,INTERRUPT,ABNORMAL); |
||||
Integer ONE_LEVEL = 21; |
||||
Integer TWO_LEVEL = 22; |
||||
Integer THREE_LEVEL = 23; |
||||
List<Integer> LEVEL_ALARAM = Arrays.asList(ONE_LEVEL,TWO_LEVEL,THREE_LEVEL); |
||||
Integer EARLY = 30; |
||||
Integer CONDITION = 40; |
||||
|
||||
} |
||||
|
@ -0,0 +1,21 @@
|
||||
package com.hnac.hzims.alarm.vo; |
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||
import com.fasterxml.jackson.databind.ser.std.NullSerializer; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author ysj |
||||
*/ |
||||
@Data |
||||
public class ChildAlarmCountVo { |
||||
|
||||
@ApiModelProperty(value = "告警子类") |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
private Integer type; |
||||
|
||||
@ApiModelProperty(value = "告警条目数量") |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
private Long count; |
||||
} |
@ -0,0 +1 @@
|
||||
alter table hzims_oper_maintenance_plan add station_code varchar(60) comment '站点编码' |
Binary file not shown.
Loading…
Reference in new issue