parent
36c2bad94a
commit
093ca22344
@ -0,0 +1,112 @@
|
|||||||
|
package com.xjs.business.warning.domain;
|
||||||
|
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author xiejs
|
||||||
|
* @desc api预警实体类
|
||||||
|
* @create 2022-01-07
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class ApiWarning implements Serializable {
|
||||||
|
/** id */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** api名称 */
|
||||||
|
private String apiName;
|
||||||
|
|
||||||
|
/** 预警类型 */
|
||||||
|
private String warningType;
|
||||||
|
|
||||||
|
/** 预警等级 */
|
||||||
|
private String warningLevel;
|
||||||
|
|
||||||
|
/** 预警记录信息 */
|
||||||
|
private String warningMessage;
|
||||||
|
|
||||||
|
/** 限定值 */
|
||||||
|
private String limitValue;
|
||||||
|
|
||||||
|
/** 实际值 */
|
||||||
|
private String realValue;
|
||||||
|
|
||||||
|
/** 是否处理 1 处理 2未处理 */
|
||||||
|
private Integer handle;
|
||||||
|
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getApiName() {
|
||||||
|
return apiName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiName(String apiName) {
|
||||||
|
this.apiName = apiName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWarningType() {
|
||||||
|
return warningType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWarningType(String warningType) {
|
||||||
|
this.warningType = warningType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWarningLevel() {
|
||||||
|
return warningLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWarningLevel(String warningLevel) {
|
||||||
|
this.warningLevel = warningLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWarningMessage() {
|
||||||
|
return warningMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWarningMessage(String warningMessage) {
|
||||||
|
this.warningMessage = warningMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLimitValue() {
|
||||||
|
return limitValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLimitValue(String limitValue) {
|
||||||
|
this.limitValue = limitValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRealValue() {
|
||||||
|
return realValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRealValue(String realValue) {
|
||||||
|
this.realValue = realValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getHandle() {
|
||||||
|
return handle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHandle(Integer handle) {
|
||||||
|
this.handle = handle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.xjs.consts;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author xiejs
|
||||||
|
* @desc api预警处理常量
|
||||||
|
* @create 2022-01-07
|
||||||
|
*/
|
||||||
|
public class ApiWarnHandleConst {
|
||||||
|
//已处理
|
||||||
|
public static final Integer YES= 1;
|
||||||
|
//未处理
|
||||||
|
public static final Integer NO= 2;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
package com.xjs.enums;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author xiejs
|
||||||
|
* @desc 预警等级枚举
|
||||||
|
* @create 2022-01-07
|
||||||
|
*/
|
||||||
|
public enum WarnLevelEnum {
|
||||||
|
/* 普通 **/
|
||||||
|
NOEMAL("普通"),
|
||||||
|
/* 警告 **/
|
||||||
|
WARNING("警告"),
|
||||||
|
/* 严重 **/
|
||||||
|
DANGER("严重");
|
||||||
|
|
||||||
|
private final String message;
|
||||||
|
|
||||||
|
WarnLevelEnum(String message) {
|
||||||
|
this.message = message;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMessage() {
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,55 @@
|
|||||||
|
package com.xjs.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ruoyi.common.core.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author xiejs
|
||||||
|
* @desc api预警实体类
|
||||||
|
* @create 2022-01-07
|
||||||
|
*/
|
||||||
|
@TableName("api_warning")
|
||||||
|
@Data
|
||||||
|
public class ApiWarning implements Serializable {
|
||||||
|
/** id */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** api名称 */
|
||||||
|
@Excel(name = "api名称")
|
||||||
|
private String apiName;
|
||||||
|
|
||||||
|
/** 预警类型 */
|
||||||
|
@Excel(name = "预警类型")
|
||||||
|
private String warningType;
|
||||||
|
|
||||||
|
/** 预警等级 */
|
||||||
|
@Excel(name = "预警等级")
|
||||||
|
private String warningLevel;
|
||||||
|
|
||||||
|
/** 预警记录信息 */
|
||||||
|
@Excel(name = "预警记录信息")
|
||||||
|
private String warningMessage;
|
||||||
|
|
||||||
|
/** 限定值 */
|
||||||
|
@Excel(name = "限定值")
|
||||||
|
private String limitValue;
|
||||||
|
|
||||||
|
/** 实际值 */
|
||||||
|
@Excel(name = "实际值")
|
||||||
|
private String realValue;
|
||||||
|
|
||||||
|
/** 是否处理 1 处理 2未处理 */
|
||||||
|
@Excel(name = "是否处理",readConverterExp=" 1=处理,2=未处理")
|
||||||
|
private Integer handle;
|
||||||
|
|
||||||
|
@Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.xjs.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.xjs.domain.ApiWarning;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author xiejs
|
||||||
|
* @desc mp api预警mapper
|
||||||
|
* @create 2022-01-07
|
||||||
|
*/
|
||||||
|
|
||||||
|
public interface ApiWarningMapper extends BaseMapper<ApiWarning> {
|
||||||
|
}
|
Loading…
Reference in new issue