数据库表基础代码生成
This commit is contained in:
parent
25fe49383b
commit
5435a970ea
162
src/main/java/iet/ustb/sf/domain/Analysis.java
Normal file
162
src/main/java/iet/ustb/sf/domain/Analysis.java
Normal file
@ -0,0 +1,162 @@
|
||||
package iet.ustb.sf.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.util.Date;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName mbgk_analysis
|
||||
*/
|
||||
@TableName(value ="mbgk_analysis")
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Analysis {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableField(value = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 指标ID
|
||||
*/
|
||||
@TableField(value = "target_id")
|
||||
private String targetId;
|
||||
|
||||
/**
|
||||
* 图表名称
|
||||
*/
|
||||
@TableField(value = "name")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 图表类型,1:折线图、2:柱状图、3:饼图
|
||||
*/
|
||||
@TableField(value = "type")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 展示维度,0:时间、1:其他
|
||||
*/
|
||||
@TableField(value = "is_time")
|
||||
private Integer isTime;
|
||||
|
||||
/**
|
||||
* 维度选择-英文
|
||||
*/
|
||||
@TableField(value = "column_en")
|
||||
private String columnEn;
|
||||
|
||||
/**
|
||||
* 维度选择-中文
|
||||
*/
|
||||
@TableField(value = "column_cn")
|
||||
private String columnCn;
|
||||
|
||||
/**
|
||||
* 时间范围、展示数量、展示值
|
||||
*/
|
||||
@TableField(value = "show_val")
|
||||
private String showVal;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "update_time")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 图表说明
|
||||
*/
|
||||
@TableField(value = "remark")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 查询SQL
|
||||
*/
|
||||
@TableField(value = "sql")
|
||||
private Object sql;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Analysis other = (Analysis) that;
|
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
||||
&& (this.getTargetId() == null ? other.getTargetId() == null : this.getTargetId().equals(other.getTargetId()))
|
||||
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
||||
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
|
||||
&& (this.getIsTime() == null ? other.getIsTime() == null : this.getIsTime().equals(other.getIsTime()))
|
||||
&& (this.getColumnEn() == null ? other.getColumnEn() == null : this.getColumnEn().equals(other.getColumnEn()))
|
||||
&& (this.getColumnCn() == null ? other.getColumnCn() == null : this.getColumnCn().equals(other.getColumnCn()))
|
||||
&& (this.getShowVal() == null ? other.getShowVal() == null : this.getShowVal().equals(other.getShowVal()))
|
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
||||
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
||||
&& (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
|
||||
&& (this.getSql() == null ? other.getSql() == null : this.getSql().equals(other.getSql()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
||||
result = prime * result + ((getTargetId() == null) ? 0 : getTargetId().hashCode());
|
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
||||
result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
|
||||
result = prime * result + ((getIsTime() == null) ? 0 : getIsTime().hashCode());
|
||||
result = prime * result + ((getColumnEn() == null) ? 0 : getColumnEn().hashCode());
|
||||
result = prime * result + ((getColumnCn() == null) ? 0 : getColumnCn().hashCode());
|
||||
result = prime * result + ((getShowVal() == null) ? 0 : getShowVal().hashCode());
|
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
||||
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
||||
result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
|
||||
result = prime * result + ((getSql() == null) ? 0 : getSql().hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", targetId=").append(targetId);
|
||||
sb.append(", name=").append(name);
|
||||
sb.append(", type=").append(type);
|
||||
sb.append(", isTime=").append(isTime);
|
||||
sb.append(", columnEn=").append(columnEn);
|
||||
sb.append(", columnCn=").append(columnCn);
|
||||
sb.append(", showVal=").append(showVal);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", updateTime=").append(updateTime);
|
||||
sb.append(", remark=").append(remark);
|
||||
sb.append(", sql=").append(sql);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
126
src/main/java/iet/ustb/sf/domain/Category.java
Normal file
126
src/main/java/iet/ustb/sf/domain/Category.java
Normal file
@ -0,0 +1,126 @@
|
||||
package iet.ustb.sf.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.util.Date;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName mbgk_category
|
||||
*/
|
||||
@TableName(value ="mbgk_category")
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Category {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableField(value = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 英文分类
|
||||
*/
|
||||
@TableField(value = "name_en")
|
||||
private String nameEn;
|
||||
|
||||
/**
|
||||
* 中文分类
|
||||
*/
|
||||
@TableField(value = "name_cn")
|
||||
private String nameCn;
|
||||
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
@TableField(value = "parent_id")
|
||||
private String parentId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "update_time")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 主题
|
||||
*/
|
||||
@TableField(value = "topic")
|
||||
private String topic;
|
||||
|
||||
/**
|
||||
* 组织
|
||||
*/
|
||||
@TableField(value = "organization")
|
||||
private String organization;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Category other = (Category) that;
|
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
||||
&& (this.getNameEn() == null ? other.getNameEn() == null : this.getNameEn().equals(other.getNameEn()))
|
||||
&& (this.getNameCn() == null ? other.getNameCn() == null : this.getNameCn().equals(other.getNameCn()))
|
||||
&& (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
|
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
||||
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
||||
&& (this.getTopic() == null ? other.getTopic() == null : this.getTopic().equals(other.getTopic()))
|
||||
&& (this.getOrganization() == null ? other.getOrganization() == null : this.getOrganization().equals(other.getOrganization()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
||||
result = prime * result + ((getNameEn() == null) ? 0 : getNameEn().hashCode());
|
||||
result = prime * result + ((getNameCn() == null) ? 0 : getNameCn().hashCode());
|
||||
result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
|
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
||||
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
||||
result = prime * result + ((getTopic() == null) ? 0 : getTopic().hashCode());
|
||||
result = prime * result + ((getOrganization() == null) ? 0 : getOrganization().hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", nameEn=").append(nameEn);
|
||||
sb.append(", nameCn=").append(nameCn);
|
||||
sb.append(", parentId=").append(parentId);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", updateTime=").append(updateTime);
|
||||
sb.append(", topic=").append(topic);
|
||||
sb.append(", organization=").append(organization);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
99
src/main/java/iet/ustb/sf/domain/JobLog.java
Normal file
99
src/main/java/iet/ustb/sf/domain/JobLog.java
Normal file
@ -0,0 +1,99 @@
|
||||
package iet.ustb.sf.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.util.Date;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName mbgk_job_log
|
||||
*/
|
||||
@TableName(value ="mbgk_job_log")
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class JobLog {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableField(value = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 指标ID
|
||||
*/
|
||||
@TableField(value = "target_id")
|
||||
private String targetId;
|
||||
|
||||
/**
|
||||
* 状态,0:正常,1:异常
|
||||
*/
|
||||
@TableField(value = "status")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 日志信息
|
||||
*/
|
||||
@TableField(value = "info")
|
||||
private Object info;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
JobLog other = (JobLog) that;
|
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
||||
&& (this.getTargetId() == null ? other.getTargetId() == null : this.getTargetId().equals(other.getTargetId()))
|
||||
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
|
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
||||
&& (this.getInfo() == null ? other.getInfo() == null : this.getInfo().equals(other.getInfo()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
||||
result = prime * result + ((getTargetId() == null) ? 0 : getTargetId().hashCode());
|
||||
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
||||
result = prime * result + ((getInfo() == null) ? 0 : getInfo().hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", targetId=").append(targetId);
|
||||
sb.append(", status=").append(status);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", info=").append(info);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
216
src/main/java/iet/ustb/sf/domain/Monitor.java
Normal file
216
src/main/java/iet/ustb/sf/domain/Monitor.java
Normal file
@ -0,0 +1,216 @@
|
||||
package iet.ustb.sf.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.util.Date;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName mbgk_monitor
|
||||
*/
|
||||
@TableName(value ="mbgk_monitor")
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Monitor {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableField(value = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 指标ID
|
||||
*/
|
||||
@TableField(value = "target_id")
|
||||
private String targetId;
|
||||
|
||||
/**
|
||||
* 规则ID
|
||||
*/
|
||||
@TableField(value = "rule_id")
|
||||
private String ruleId;
|
||||
|
||||
/**
|
||||
* 指标名称
|
||||
*/
|
||||
@TableField(value = "name")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 类型,0:原子指标,1:衍生指标,2:聚合指标
|
||||
*/
|
||||
@TableField(value = "type")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 主题名
|
||||
*/
|
||||
@TableField(value = "topic")
|
||||
private String topic;
|
||||
|
||||
/**
|
||||
* 组织
|
||||
*/
|
||||
@TableField(value = "organization")
|
||||
private String organization;
|
||||
|
||||
/**
|
||||
* 指标层级
|
||||
*/
|
||||
@TableField(value = "level_")
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
* 周期
|
||||
*/
|
||||
@TableField(value = "cycle")
|
||||
private String cycle;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@TableField(value = "unit")
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* 目标值
|
||||
*/
|
||||
@TableField(value = "target")
|
||||
private String target;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField(value = "val")
|
||||
private Double val;
|
||||
|
||||
/**
|
||||
* 报警等级
|
||||
*/
|
||||
@TableField(value = "warn_level")
|
||||
private Integer warnLevel;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
@TableField(value = "set_date")
|
||||
private Date setDate;
|
||||
|
||||
/**
|
||||
* X轴显示
|
||||
*/
|
||||
@TableField(value = "x_show")
|
||||
private String xShow;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "update_time")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 告警类别
|
||||
*/
|
||||
@TableField(value = "warn_type")
|
||||
private Integer warnType;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Monitor other = (Monitor) that;
|
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
||||
&& (this.getTargetId() == null ? other.getTargetId() == null : this.getTargetId().equals(other.getTargetId()))
|
||||
&& (this.getRuleId() == null ? other.getRuleId() == null : this.getRuleId().equals(other.getRuleId()))
|
||||
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
||||
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
|
||||
&& (this.getTopic() == null ? other.getTopic() == null : this.getTopic().equals(other.getTopic()))
|
||||
&& (this.getOrganization() == null ? other.getOrganization() == null : this.getOrganization().equals(other.getOrganization()))
|
||||
&& (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
|
||||
&& (this.getCycle() == null ? other.getCycle() == null : this.getCycle().equals(other.getCycle()))
|
||||
&& (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
|
||||
&& (this.getTarget() == null ? other.getTarget() == null : this.getTarget().equals(other.getTarget()))
|
||||
&& (this.getVal() == null ? other.getVal() == null : this.getVal().equals(other.getVal()))
|
||||
&& (this.getWarnLevel() == null ? other.getWarnLevel() == null : this.getWarnLevel().equals(other.getWarnLevel()))
|
||||
&& (this.getSetDate() == null ? other.getSetDate() == null : this.getSetDate().equals(other.getSetDate()))
|
||||
&& (this.getXShow() == null ? other.getXShow() == null : this.getXShow().equals(other.getXShow()))
|
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
||||
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
||||
&& (this.getWarnType() == null ? other.getWarnType() == null : this.getWarnType().equals(other.getWarnType()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
||||
result = prime * result + ((getTargetId() == null) ? 0 : getTargetId().hashCode());
|
||||
result = prime * result + ((getRuleId() == null) ? 0 : getRuleId().hashCode());
|
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
||||
result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
|
||||
result = prime * result + ((getTopic() == null) ? 0 : getTopic().hashCode());
|
||||
result = prime * result + ((getOrganization() == null) ? 0 : getOrganization().hashCode());
|
||||
result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
|
||||
result = prime * result + ((getCycle() == null) ? 0 : getCycle().hashCode());
|
||||
result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
|
||||
result = prime * result + ((getTarget() == null) ? 0 : getTarget().hashCode());
|
||||
result = prime * result + ((getVal() == null) ? 0 : getVal().hashCode());
|
||||
result = prime * result + ((getWarnLevel() == null) ? 0 : getWarnLevel().hashCode());
|
||||
result = prime * result + ((getSetDate() == null) ? 0 : getSetDate().hashCode());
|
||||
result = prime * result + ((getXShow() == null) ? 0 : getXShow().hashCode());
|
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
||||
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
||||
result = prime * result + ((getWarnType() == null) ? 0 : getWarnType().hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", targetId=").append(targetId);
|
||||
sb.append(", ruleId=").append(ruleId);
|
||||
sb.append(", name=").append(name);
|
||||
sb.append(", type=").append(type);
|
||||
sb.append(", topic=").append(topic);
|
||||
sb.append(", organization=").append(organization);
|
||||
sb.append(", level=").append(level);
|
||||
sb.append(", cycle=").append(cycle);
|
||||
sb.append(", unit=").append(unit);
|
||||
sb.append(", target=").append(target);
|
||||
sb.append(", val=").append(val);
|
||||
sb.append(", warnLevel=").append(warnLevel);
|
||||
sb.append(", setDate=").append(setDate);
|
||||
sb.append(", xShow=").append(xShow);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", updateTime=").append(updateTime);
|
||||
sb.append(", warnType=").append(warnType);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
225
src/main/java/iet/ustb/sf/domain/Rule.java
Normal file
225
src/main/java/iet/ustb/sf/domain/Rule.java
Normal file
@ -0,0 +1,225 @@
|
||||
package iet.ustb.sf.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.util.Date;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName mbgk_rule
|
||||
*/
|
||||
@TableName(value ="mbgk_rule")
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Rule {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableField(value = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 规则名称
|
||||
*/
|
||||
@TableField(value = "name")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 类型,1:阈值报警推送,2:阈值报警不推送,3:趋势报警推送,4:趋势报警不推送
|
||||
*/
|
||||
@TableField(value = "type")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 报警逻辑
|
||||
*/
|
||||
@TableField(value = "op")
|
||||
private String op;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField(value = "target")
|
||||
private Double target;
|
||||
|
||||
/**
|
||||
* 倍率
|
||||
*/
|
||||
@TableField(value = "rate")
|
||||
private Double rate;
|
||||
|
||||
/**
|
||||
* 报警等级
|
||||
*/
|
||||
@TableField(value = "warn_level")
|
||||
private Integer warnLevel;
|
||||
|
||||
/**
|
||||
* 规则说明
|
||||
*/
|
||||
@TableField(value = "remark")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "update_time")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 指标ID
|
||||
*/
|
||||
@TableField(value = "target_id")
|
||||
private String targetId;
|
||||
|
||||
/**
|
||||
* 周期
|
||||
*/
|
||||
@TableField(value = "cycle")
|
||||
private String cycle;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@TableField(value = "unit")
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
@TableField(value = "parent_id")
|
||||
private String parentId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField(value = "x_var")
|
||||
private Double xVar;
|
||||
|
||||
/**
|
||||
* 是否推送,1:推送,0:不推送
|
||||
*/
|
||||
@TableField(value = "is_push")
|
||||
private Integer isPush;
|
||||
|
||||
/**
|
||||
* 评估周期
|
||||
*/
|
||||
@TableField(value = "cycle_num")
|
||||
private Integer cycleNum;
|
||||
|
||||
/**
|
||||
* 停时方案
|
||||
*/
|
||||
@TableField(value = "plan_line")
|
||||
private String planLine;
|
||||
|
||||
/**
|
||||
* 停时区域
|
||||
*/
|
||||
@TableField(value = "plan_area")
|
||||
private String planArea;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Rule other = (Rule) that;
|
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
||||
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
||||
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
|
||||
&& (this.getOp() == null ? other.getOp() == null : this.getOp().equals(other.getOp()))
|
||||
&& (this.getTarget() == null ? other.getTarget() == null : this.getTarget().equals(other.getTarget()))
|
||||
&& (this.getRate() == null ? other.getRate() == null : this.getRate().equals(other.getRate()))
|
||||
&& (this.getWarnLevel() == null ? other.getWarnLevel() == null : this.getWarnLevel().equals(other.getWarnLevel()))
|
||||
&& (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
|
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
||||
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
||||
&& (this.getTargetId() == null ? other.getTargetId() == null : this.getTargetId().equals(other.getTargetId()))
|
||||
&& (this.getCycle() == null ? other.getCycle() == null : this.getCycle().equals(other.getCycle()))
|
||||
&& (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
|
||||
&& (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
|
||||
&& (this.getXVar() == null ? other.getXVar() == null : this.getXVar().equals(other.getXVar()))
|
||||
&& (this.getIsPush() == null ? other.getIsPush() == null : this.getIsPush().equals(other.getIsPush()))
|
||||
&& (this.getCycleNum() == null ? other.getCycleNum() == null : this.getCycleNum().equals(other.getCycleNum()))
|
||||
&& (this.getPlanLine() == null ? other.getPlanLine() == null : this.getPlanLine().equals(other.getPlanLine()))
|
||||
&& (this.getPlanArea() == null ? other.getPlanArea() == null : this.getPlanArea().equals(other.getPlanArea()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
||||
result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
|
||||
result = prime * result + ((getOp() == null) ? 0 : getOp().hashCode());
|
||||
result = prime * result + ((getTarget() == null) ? 0 : getTarget().hashCode());
|
||||
result = prime * result + ((getRate() == null) ? 0 : getRate().hashCode());
|
||||
result = prime * result + ((getWarnLevel() == null) ? 0 : getWarnLevel().hashCode());
|
||||
result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
|
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
||||
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
||||
result = prime * result + ((getTargetId() == null) ? 0 : getTargetId().hashCode());
|
||||
result = prime * result + ((getCycle() == null) ? 0 : getCycle().hashCode());
|
||||
result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
|
||||
result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
|
||||
result = prime * result + ((getXVar() == null) ? 0 : getXVar().hashCode());
|
||||
result = prime * result + ((getIsPush() == null) ? 0 : getIsPush().hashCode());
|
||||
result = prime * result + ((getCycleNum() == null) ? 0 : getCycleNum().hashCode());
|
||||
result = prime * result + ((getPlanLine() == null) ? 0 : getPlanLine().hashCode());
|
||||
result = prime * result + ((getPlanArea() == null) ? 0 : getPlanArea().hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", name=").append(name);
|
||||
sb.append(", type=").append(type);
|
||||
sb.append(", op=").append(op);
|
||||
sb.append(", target=").append(target);
|
||||
sb.append(", rate=").append(rate);
|
||||
sb.append(", warnLevel=").append(warnLevel);
|
||||
sb.append(", remark=").append(remark);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", updateTime=").append(updateTime);
|
||||
sb.append(", targetId=").append(targetId);
|
||||
sb.append(", cycle=").append(cycle);
|
||||
sb.append(", unit=").append(unit);
|
||||
sb.append(", parentId=").append(parentId);
|
||||
sb.append(", xVar=").append(xVar);
|
||||
sb.append(", isPush=").append(isPush);
|
||||
sb.append(", cycleNum=").append(cycleNum);
|
||||
sb.append(", planLine=").append(planLine);
|
||||
sb.append(", planArea=").append(planArea);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -24,72 +24,85 @@ public class TableColumn {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableField(value = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 表名称
|
||||
*/
|
||||
@TableField(value = "table_name")
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 中文表名称
|
||||
*/
|
||||
@TableField(value = "table_name_cn")
|
||||
private String tableNameCn;
|
||||
|
||||
/**
|
||||
* 列名称
|
||||
*/
|
||||
@TableField(value = "column_name")
|
||||
private String columnName;
|
||||
|
||||
/**
|
||||
* 中文列名称
|
||||
*/
|
||||
@TableField(value = "column_name_cn")
|
||||
private String columnNameCn;
|
||||
|
||||
/**
|
||||
* 列类型
|
||||
*/
|
||||
@TableField(value = "colnumn_type")
|
||||
private String colnumnType;
|
||||
|
||||
/**
|
||||
* 模式
|
||||
*/
|
||||
@TableField(value = "schema")
|
||||
private String schema;
|
||||
|
||||
/**
|
||||
* 数据源
|
||||
*/
|
||||
@TableField(value = "data_source")
|
||||
private String dataSource;
|
||||
|
||||
/**
|
||||
* 删除标识,1:true,0:false
|
||||
*/
|
||||
@TableField(value = "is_delete")
|
||||
private Integer isDelete;
|
||||
|
||||
/**
|
||||
* 主键标识,1:true,0:false
|
||||
*/
|
||||
@TableField(value = "is_primary")
|
||||
private Integer isPrimary;
|
||||
|
||||
/**
|
||||
* 操作,1:可计算,2:可筛选,可以有多个中间用逗号英文分割
|
||||
*/
|
||||
@TableField(value = "op")
|
||||
private String op;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "update_time")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
@TableField("sort_")
|
||||
@TableField(value = "sort_")
|
||||
private Integer sort;
|
||||
|
||||
@Override
|
||||
|
252
src/main/java/iet/ustb/sf/domain/Target.java
Normal file
252
src/main/java/iet/ustb/sf/domain/Target.java
Normal file
@ -0,0 +1,252 @@
|
||||
package iet.ustb.sf.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.util.Date;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName mbgk_target
|
||||
*/
|
||||
@TableName(value ="mbgk_target")
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Target {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableField(value = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 规则名称
|
||||
*/
|
||||
@TableField(value = "name")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 主题/组织 名称
|
||||
*/
|
||||
@TableField(value = "parent_name")
|
||||
private String parentName;
|
||||
|
||||
/**
|
||||
* 分类ID
|
||||
*/
|
||||
@TableField(value = "category_id")
|
||||
private String categoryId;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@TableField(value = "unit")
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* 类型,0:原子指标,1:衍生指标,2:聚合指标
|
||||
*/
|
||||
@TableField(value = "type")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 是否重点指标,1:是,0:不是
|
||||
*/
|
||||
@TableField(value = "is_key")
|
||||
private Integer isKey;
|
||||
|
||||
/**
|
||||
* 指标说明
|
||||
*/
|
||||
@TableField(value = "target_info")
|
||||
private String targetInfo;
|
||||
|
||||
/**
|
||||
* 结果查询SQL
|
||||
*/
|
||||
@TableField(value = "result_sql")
|
||||
private String resultSql;
|
||||
|
||||
/**
|
||||
* 指标层级
|
||||
*/
|
||||
@TableField(value = "level_")
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
* 上级指标
|
||||
*/
|
||||
@TableField(value = "parent")
|
||||
private String parent;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField(value = "remark")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 表名
|
||||
*/
|
||||
@TableField(value = "table_name")
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 周期
|
||||
*/
|
||||
@TableField(value = "cycle")
|
||||
private String cycle;
|
||||
|
||||
/**
|
||||
* 状态,1:启用,0:停用
|
||||
*/
|
||||
@TableField(value = "status")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 查询SQL
|
||||
*/
|
||||
@TableField(value = "search_sql")
|
||||
private String searchSql;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "update_time")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 主题名
|
||||
*/
|
||||
@TableField(value = "topic")
|
||||
private String topic;
|
||||
|
||||
/**
|
||||
* 组织
|
||||
*/
|
||||
@TableField(value = "organization")
|
||||
private String organization;
|
||||
|
||||
/**
|
||||
* 定时任务SQL
|
||||
*/
|
||||
@TableField(value = "job_sql")
|
||||
private String jobSql;
|
||||
|
||||
/**
|
||||
* 历史数据SQL
|
||||
*/
|
||||
@TableField(value = "his_sql")
|
||||
private String hisSql;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Target other = (Target) that;
|
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
||||
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
||||
&& (this.getParentName() == null ? other.getParentName() == null : this.getParentName().equals(other.getParentName()))
|
||||
&& (this.getCategoryId() == null ? other.getCategoryId() == null : this.getCategoryId().equals(other.getCategoryId()))
|
||||
&& (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
|
||||
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
|
||||
&& (this.getIsKey() == null ? other.getIsKey() == null : this.getIsKey().equals(other.getIsKey()))
|
||||
&& (this.getTargetInfo() == null ? other.getTargetInfo() == null : this.getTargetInfo().equals(other.getTargetInfo()))
|
||||
&& (this.getResultSql() == null ? other.getResultSql() == null : this.getResultSql().equals(other.getResultSql()))
|
||||
&& (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
|
||||
&& (this.getParent() == null ? other.getParent() == null : this.getParent().equals(other.getParent()))
|
||||
&& (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
|
||||
&& (this.getTableName() == null ? other.getTableName() == null : this.getTableName().equals(other.getTableName()))
|
||||
&& (this.getCycle() == null ? other.getCycle() == null : this.getCycle().equals(other.getCycle()))
|
||||
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
|
||||
&& (this.getSearchSql() == null ? other.getSearchSql() == null : this.getSearchSql().equals(other.getSearchSql()))
|
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
||||
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
||||
&& (this.getTopic() == null ? other.getTopic() == null : this.getTopic().equals(other.getTopic()))
|
||||
&& (this.getOrganization() == null ? other.getOrganization() == null : this.getOrganization().equals(other.getOrganization()))
|
||||
&& (this.getJobSql() == null ? other.getJobSql() == null : this.getJobSql().equals(other.getJobSql()))
|
||||
&& (this.getHisSql() == null ? other.getHisSql() == null : this.getHisSql().equals(other.getHisSql()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
||||
result = prime * result + ((getParentName() == null) ? 0 : getParentName().hashCode());
|
||||
result = prime * result + ((getCategoryId() == null) ? 0 : getCategoryId().hashCode());
|
||||
result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
|
||||
result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
|
||||
result = prime * result + ((getIsKey() == null) ? 0 : getIsKey().hashCode());
|
||||
result = prime * result + ((getTargetInfo() == null) ? 0 : getTargetInfo().hashCode());
|
||||
result = prime * result + ((getResultSql() == null) ? 0 : getResultSql().hashCode());
|
||||
result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
|
||||
result = prime * result + ((getParent() == null) ? 0 : getParent().hashCode());
|
||||
result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
|
||||
result = prime * result + ((getTableName() == null) ? 0 : getTableName().hashCode());
|
||||
result = prime * result + ((getCycle() == null) ? 0 : getCycle().hashCode());
|
||||
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
||||
result = prime * result + ((getSearchSql() == null) ? 0 : getSearchSql().hashCode());
|
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
||||
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
||||
result = prime * result + ((getTopic() == null) ? 0 : getTopic().hashCode());
|
||||
result = prime * result + ((getOrganization() == null) ? 0 : getOrganization().hashCode());
|
||||
result = prime * result + ((getJobSql() == null) ? 0 : getJobSql().hashCode());
|
||||
result = prime * result + ((getHisSql() == null) ? 0 : getHisSql().hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", name=").append(name);
|
||||
sb.append(", parentName=").append(parentName);
|
||||
sb.append(", categoryId=").append(categoryId);
|
||||
sb.append(", unit=").append(unit);
|
||||
sb.append(", type=").append(type);
|
||||
sb.append(", isKey=").append(isKey);
|
||||
sb.append(", targetInfo=").append(targetInfo);
|
||||
sb.append(", resultSql=").append(resultSql);
|
||||
sb.append(", level=").append(level);
|
||||
sb.append(", parent=").append(parent);
|
||||
sb.append(", remark=").append(remark);
|
||||
sb.append(", tableName=").append(tableName);
|
||||
sb.append(", cycle=").append(cycle);
|
||||
sb.append(", status=").append(status);
|
||||
sb.append(", searchSql=").append(searchSql);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", updateTime=").append(updateTime);
|
||||
sb.append(", topic=").append(topic);
|
||||
sb.append(", organization=").append(organization);
|
||||
sb.append(", jobSql=").append(jobSql);
|
||||
sb.append(", hisSql=").append(hisSql);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
135
src/main/java/iet/ustb/sf/domain/TargetData.java
Normal file
135
src/main/java/iet/ustb/sf/domain/TargetData.java
Normal file
@ -0,0 +1,135 @@
|
||||
package iet.ustb.sf.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.util.Date;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName mbgk_target_data
|
||||
*/
|
||||
@TableName(value ="mbgk_target_data")
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class TargetData {
|
||||
/**
|
||||
* 指标ID
|
||||
*/
|
||||
@TableField(value = "target_id")
|
||||
private String targetId;
|
||||
|
||||
/**
|
||||
* X轴显示
|
||||
*/
|
||||
@TableField(value = "x_show")
|
||||
private String xShow;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField(value = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
@TableField(value = "set_date")
|
||||
private Date setDate;
|
||||
|
||||
/**
|
||||
* 周期
|
||||
*/
|
||||
@TableField(value = "cycle")
|
||||
private String cycle;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "update_time")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 值
|
||||
*/
|
||||
@TableField(value = "val")
|
||||
private Double val;
|
||||
|
||||
/**
|
||||
* 指标周期
|
||||
*/
|
||||
@TableField(value = "target_cycle")
|
||||
private String targetCycle;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
TargetData other = (TargetData) that;
|
||||
return (this.getTargetId() == null ? other.getTargetId() == null : this.getTargetId().equals(other.getTargetId()))
|
||||
&& (this.getxShow() == null ? other.getxShow() == null : this.getxShow().equals(other.getxShow()))
|
||||
&& (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
||||
&& (this.getSetDate() == null ? other.getSetDate() == null : this.getSetDate().equals(other.getSetDate()))
|
||||
&& (this.getCycle() == null ? other.getCycle() == null : this.getCycle().equals(other.getCycle()))
|
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
||||
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
||||
&& (this.getVal() == null ? other.getVal() == null : this.getVal().equals(other.getVal()))
|
||||
&& (this.getTargetCycle() == null ? other.getTargetCycle() == null : this.getTargetCycle().equals(other.getTargetCycle()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getTargetId() == null) ? 0 : getTargetId().hashCode());
|
||||
result = prime * result + ((getxShow() == null) ? 0 : getxShow().hashCode());
|
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
||||
result = prime * result + ((getSetDate() == null) ? 0 : getSetDate().hashCode());
|
||||
result = prime * result + ((getCycle() == null) ? 0 : getCycle().hashCode());
|
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
||||
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
||||
result = prime * result + ((getVal() == null) ? 0 : getVal().hashCode());
|
||||
result = prime * result + ((getTargetCycle() == null) ? 0 : getTargetCycle().hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", targetId=").append(targetId);
|
||||
sb.append(", xShow=").append(xShow);
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", setDate=").append(setDate);
|
||||
sb.append(", cycle=").append(cycle);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", updateTime=").append(updateTime);
|
||||
sb.append(", val=").append(val);
|
||||
sb.append(", targetCycle=").append(targetCycle);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
135
src/main/java/iet/ustb/sf/domain/TargetOption.java
Normal file
135
src/main/java/iet/ustb/sf/domain/TargetOption.java
Normal file
@ -0,0 +1,135 @@
|
||||
package iet.ustb.sf.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.util.Date;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName mbgk_target_option
|
||||
*/
|
||||
@TableName(value ="mbgk_target_option")
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class TargetOption {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableField(value = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 指标规则ID
|
||||
*/
|
||||
@TableField(value = "target_id")
|
||||
private String targetId;
|
||||
|
||||
/**
|
||||
* 列名
|
||||
*/
|
||||
@TableField(value = "column_name")
|
||||
private String columnName;
|
||||
|
||||
/**
|
||||
* 类型,1:日期、2:文本、3:数值
|
||||
*/
|
||||
@TableField(value = "type")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 操作类型(多个时逗号分割),0:显示,1:筛选,2:输出
|
||||
*/
|
||||
@TableField(value = "op")
|
||||
private String op;
|
||||
|
||||
/**
|
||||
* 求和、平均、最大、最小、计数、大于、小于、大于等于、小于等于、等于、不等于、日、周、月
|
||||
*/
|
||||
@TableField(value = "fun")
|
||||
private String fun;
|
||||
|
||||
/**
|
||||
* 值,多个的话以逗号分割
|
||||
*/
|
||||
@TableField(value = "val")
|
||||
private String val;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "update_time")
|
||||
private Date updateTime;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
TargetOption other = (TargetOption) that;
|
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
||||
&& (this.getTargetId() == null ? other.getTargetId() == null : this.getTargetId().equals(other.getTargetId()))
|
||||
&& (this.getColumnName() == null ? other.getColumnName() == null : this.getColumnName().equals(other.getColumnName()))
|
||||
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
|
||||
&& (this.getOp() == null ? other.getOp() == null : this.getOp().equals(other.getOp()))
|
||||
&& (this.getFun() == null ? other.getFun() == null : this.getFun().equals(other.getFun()))
|
||||
&& (this.getVal() == null ? other.getVal() == null : this.getVal().equals(other.getVal()))
|
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
||||
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
||||
result = prime * result + ((getTargetId() == null) ? 0 : getTargetId().hashCode());
|
||||
result = prime * result + ((getColumnName() == null) ? 0 : getColumnName().hashCode());
|
||||
result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
|
||||
result = prime * result + ((getOp() == null) ? 0 : getOp().hashCode());
|
||||
result = prime * result + ((getFun() == null) ? 0 : getFun().hashCode());
|
||||
result = prime * result + ((getVal() == null) ? 0 : getVal().hashCode());
|
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
||||
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", targetId=").append(targetId);
|
||||
sb.append(", columnName=").append(columnName);
|
||||
sb.append(", type=").append(type);
|
||||
sb.append(", op=").append(op);
|
||||
sb.append(", fun=").append(fun);
|
||||
sb.append(", val=").append(val);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", updateTime=").append(updateTime);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
18
src/main/java/iet/ustb/sf/mapper/AnalysisMapper.java
Normal file
18
src/main/java/iet/ustb/sf/mapper/AnalysisMapper.java
Normal file
@ -0,0 +1,18 @@
|
||||
package iet.ustb.sf.mapper;
|
||||
|
||||
import iet.ustb.sf.domain.Analysis;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_analysis】的数据库操作Mapper
|
||||
* @createDate 2025-08-05 15:34:30
|
||||
* @Entity iet.ustb.sf.domain.Analysis
|
||||
*/
|
||||
public interface AnalysisMapper extends BaseMapper<Analysis> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
18
src/main/java/iet/ustb/sf/mapper/CategoryMapper.java
Normal file
18
src/main/java/iet/ustb/sf/mapper/CategoryMapper.java
Normal file
@ -0,0 +1,18 @@
|
||||
package iet.ustb.sf.mapper;
|
||||
|
||||
import iet.ustb.sf.domain.Category;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_category】的数据库操作Mapper
|
||||
* @createDate 2025-08-05 15:22:02
|
||||
* @Entity iet.ustb.sf.domain.Category
|
||||
*/
|
||||
public interface CategoryMapper extends BaseMapper<Category> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
18
src/main/java/iet/ustb/sf/mapper/JobLogMapper.java
Normal file
18
src/main/java/iet/ustb/sf/mapper/JobLogMapper.java
Normal file
@ -0,0 +1,18 @@
|
||||
package iet.ustb.sf.mapper;
|
||||
|
||||
import iet.ustb.sf.domain.JobLog;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_job_log】的数据库操作Mapper
|
||||
* @createDate 2025-08-05 15:35:25
|
||||
* @Entity iet.ustb.sf.domain.JobLog
|
||||
*/
|
||||
public interface JobLogMapper extends BaseMapper<JobLog> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
18
src/main/java/iet/ustb/sf/mapper/MonitorMapper.java
Normal file
18
src/main/java/iet/ustb/sf/mapper/MonitorMapper.java
Normal file
@ -0,0 +1,18 @@
|
||||
package iet.ustb.sf.mapper;
|
||||
|
||||
import iet.ustb.sf.domain.Monitor;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_monitor】的数据库操作Mapper
|
||||
* @createDate 2025-08-05 15:36:01
|
||||
* @Entity iet.ustb.sf.domain.Monitor
|
||||
*/
|
||||
public interface MonitorMapper extends BaseMapper<Monitor> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
18
src/main/java/iet/ustb/sf/mapper/RuleMapper.java
Normal file
18
src/main/java/iet/ustb/sf/mapper/RuleMapper.java
Normal file
@ -0,0 +1,18 @@
|
||||
package iet.ustb.sf.mapper;
|
||||
|
||||
import iet.ustb.sf.domain.Rule;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_rule】的数据库操作Mapper
|
||||
* @createDate 2025-08-05 15:39:11
|
||||
* @Entity iet.ustb.sf.domain.Rule
|
||||
*/
|
||||
public interface RuleMapper extends BaseMapper<Rule> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
18
src/main/java/iet/ustb/sf/mapper/TargetDataMapper.java
Normal file
18
src/main/java/iet/ustb/sf/mapper/TargetDataMapper.java
Normal file
@ -0,0 +1,18 @@
|
||||
package iet.ustb.sf.mapper;
|
||||
|
||||
import iet.ustb.sf.domain.TargetData;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_target_data】的数据库操作Mapper
|
||||
* @createDate 2025-08-05 15:40:32
|
||||
* @Entity iet.ustb.sf.domain.TargetData
|
||||
*/
|
||||
public interface TargetDataMapper extends BaseMapper<TargetData> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
18
src/main/java/iet/ustb/sf/mapper/TargetMapper.java
Normal file
18
src/main/java/iet/ustb/sf/mapper/TargetMapper.java
Normal file
@ -0,0 +1,18 @@
|
||||
package iet.ustb.sf.mapper;
|
||||
|
||||
import iet.ustb.sf.domain.Target;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_target】的数据库操作Mapper
|
||||
* @createDate 2025-08-05 15:40:19
|
||||
* @Entity iet.ustb.sf.domain.Target
|
||||
*/
|
||||
public interface TargetMapper extends BaseMapper<Target> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
18
src/main/java/iet/ustb/sf/mapper/TargetOptionMapper.java
Normal file
18
src/main/java/iet/ustb/sf/mapper/TargetOptionMapper.java
Normal file
@ -0,0 +1,18 @@
|
||||
package iet.ustb.sf.mapper;
|
||||
|
||||
import iet.ustb.sf.domain.TargetOption;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_target_option】的数据库操作Mapper
|
||||
* @createDate 2025-08-05 15:40:49
|
||||
* @Entity iet.ustb.sf.domain.TargetOption
|
||||
*/
|
||||
public interface TargetOptionMapper extends BaseMapper<TargetOption> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
13
src/main/java/iet/ustb/sf/service/AnalysisService.java
Normal file
13
src/main/java/iet/ustb/sf/service/AnalysisService.java
Normal file
@ -0,0 +1,13 @@
|
||||
package iet.ustb.sf.service;
|
||||
|
||||
import iet.ustb.sf.domain.Analysis;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_analysis】的数据库操作Service
|
||||
* @createDate 2025-08-05 15:34:30
|
||||
*/
|
||||
public interface AnalysisService extends IService<Analysis> {
|
||||
|
||||
}
|
14
src/main/java/iet/ustb/sf/service/CategoryService.java
Normal file
14
src/main/java/iet/ustb/sf/service/CategoryService.java
Normal file
@ -0,0 +1,14 @@
|
||||
package iet.ustb.sf.service;
|
||||
|
||||
import iet.ustb.sf.domain.Category;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_category】的数据库操作Service
|
||||
* @createDate 2025-08-05 15:22:02
|
||||
*/
|
||||
public interface CategoryService extends IService<Category> {
|
||||
}
|
13
src/main/java/iet/ustb/sf/service/JobLogService.java
Normal file
13
src/main/java/iet/ustb/sf/service/JobLogService.java
Normal file
@ -0,0 +1,13 @@
|
||||
package iet.ustb.sf.service;
|
||||
|
||||
import iet.ustb.sf.domain.JobLog;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_job_log】的数据库操作Service
|
||||
* @createDate 2025-08-05 15:35:25
|
||||
*/
|
||||
public interface JobLogService extends IService<JobLog> {
|
||||
|
||||
}
|
13
src/main/java/iet/ustb/sf/service/MonitorService.java
Normal file
13
src/main/java/iet/ustb/sf/service/MonitorService.java
Normal file
@ -0,0 +1,13 @@
|
||||
package iet.ustb.sf.service;
|
||||
|
||||
import iet.ustb.sf.domain.Monitor;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_monitor】的数据库操作Service
|
||||
* @createDate 2025-08-05 15:36:01
|
||||
*/
|
||||
public interface MonitorService extends IService<Monitor> {
|
||||
|
||||
}
|
13
src/main/java/iet/ustb/sf/service/RuleService.java
Normal file
13
src/main/java/iet/ustb/sf/service/RuleService.java
Normal file
@ -0,0 +1,13 @@
|
||||
package iet.ustb.sf.service;
|
||||
|
||||
import iet.ustb.sf.domain.Rule;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_rule】的数据库操作Service
|
||||
* @createDate 2025-08-05 15:39:11
|
||||
*/
|
||||
public interface RuleService extends IService<Rule> {
|
||||
|
||||
}
|
13
src/main/java/iet/ustb/sf/service/TargetDataService.java
Normal file
13
src/main/java/iet/ustb/sf/service/TargetDataService.java
Normal file
@ -0,0 +1,13 @@
|
||||
package iet.ustb.sf.service;
|
||||
|
||||
import iet.ustb.sf.domain.TargetData;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_target_data】的数据库操作Service
|
||||
* @createDate 2025-08-05 15:40:32
|
||||
*/
|
||||
public interface TargetDataService extends IService<TargetData> {
|
||||
|
||||
}
|
13
src/main/java/iet/ustb/sf/service/TargetOptionService.java
Normal file
13
src/main/java/iet/ustb/sf/service/TargetOptionService.java
Normal file
@ -0,0 +1,13 @@
|
||||
package iet.ustb.sf.service;
|
||||
|
||||
import iet.ustb.sf.domain.TargetOption;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_target_option】的数据库操作Service
|
||||
* @createDate 2025-08-05 15:40:49
|
||||
*/
|
||||
public interface TargetOptionService extends IService<TargetOption> {
|
||||
|
||||
}
|
13
src/main/java/iet/ustb/sf/service/TargetService.java
Normal file
13
src/main/java/iet/ustb/sf/service/TargetService.java
Normal file
@ -0,0 +1,13 @@
|
||||
package iet.ustb.sf.service;
|
||||
|
||||
import iet.ustb.sf.domain.Target;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_target】的数据库操作Service
|
||||
* @createDate 2025-08-05 15:40:19
|
||||
*/
|
||||
public interface TargetService extends IService<Target> {
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package iet.ustb.sf.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import iet.ustb.sf.domain.Analysis;
|
||||
import iet.ustb.sf.service.AnalysisService;
|
||||
import iet.ustb.sf.mapper.AnalysisMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_analysis】的数据库操作Service实现
|
||||
* @createDate 2025-08-05 15:34:30
|
||||
*/
|
||||
@Service
|
||||
public class AnalysisServiceImpl extends ServiceImpl<AnalysisMapper, Analysis>
|
||||
implements AnalysisService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,28 @@
|
||||
package iet.ustb.sf.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import iet.ustb.sf.domain.Category;
|
||||
import iet.ustb.sf.exception.ErrorCode;
|
||||
import iet.ustb.sf.exception.ThrowUtils;
|
||||
import iet.ustb.sf.service.CategoryService;
|
||||
import iet.ustb.sf.mapper.CategoryMapper;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_category】的数据库操作Service实现
|
||||
* @createDate 2025-08-05 15:22:02
|
||||
*/
|
||||
@Service
|
||||
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category>
|
||||
implements CategoryService {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
package iet.ustb.sf.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import iet.ustb.sf.domain.JobLog;
|
||||
import iet.ustb.sf.service.JobLogService;
|
||||
import iet.ustb.sf.mapper.JobLogMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_job_log】的数据库操作Service实现
|
||||
* @createDate 2025-08-05 15:35:25
|
||||
*/
|
||||
@Service
|
||||
public class JobLogServiceImpl extends ServiceImpl<JobLogMapper, JobLog>
|
||||
implements JobLogService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
package iet.ustb.sf.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import iet.ustb.sf.domain.Monitor;
|
||||
import iet.ustb.sf.service.MonitorService;
|
||||
import iet.ustb.sf.mapper.MonitorMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_monitor】的数据库操作Service实现
|
||||
* @createDate 2025-08-05 15:36:01
|
||||
*/
|
||||
@Service
|
||||
public class MonitorServiceImpl extends ServiceImpl<MonitorMapper, Monitor>
|
||||
implements MonitorService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
22
src/main/java/iet/ustb/sf/service/impl/RuleServiceImpl.java
Normal file
22
src/main/java/iet/ustb/sf/service/impl/RuleServiceImpl.java
Normal file
@ -0,0 +1,22 @@
|
||||
package iet.ustb.sf.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import iet.ustb.sf.domain.Rule;
|
||||
import iet.ustb.sf.service.RuleService;
|
||||
import iet.ustb.sf.mapper.RuleMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_rule】的数据库操作Service实现
|
||||
* @createDate 2025-08-05 15:39:11
|
||||
*/
|
||||
@Service
|
||||
public class RuleServiceImpl extends ServiceImpl<RuleMapper, Rule>
|
||||
implements RuleService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
package iet.ustb.sf.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import iet.ustb.sf.domain.TargetData;
|
||||
import iet.ustb.sf.service.TargetDataService;
|
||||
import iet.ustb.sf.mapper.TargetDataMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_target_data】的数据库操作Service实现
|
||||
* @createDate 2025-08-05 15:40:32
|
||||
*/
|
||||
@Service
|
||||
public class TargetDataServiceImpl extends ServiceImpl<TargetDataMapper, TargetData>
|
||||
implements TargetDataService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
package iet.ustb.sf.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import iet.ustb.sf.domain.TargetOption;
|
||||
import iet.ustb.sf.service.TargetOptionService;
|
||||
import iet.ustb.sf.mapper.TargetOptionMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_target_option】的数据库操作Service实现
|
||||
* @createDate 2025-08-05 15:40:49
|
||||
*/
|
||||
@Service
|
||||
public class TargetOptionServiceImpl extends ServiceImpl<TargetOptionMapper, TargetOption>
|
||||
implements TargetOptionService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
package iet.ustb.sf.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import iet.ustb.sf.domain.Target;
|
||||
import iet.ustb.sf.service.TargetService;
|
||||
import iet.ustb.sf.mapper.TargetMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author hyy
|
||||
* @description 针对表【mbgk_target】的数据库操作Service实现
|
||||
* @createDate 2025-08-05 15:40:19
|
||||
*/
|
||||
@Service
|
||||
public class TargetServiceImpl extends ServiceImpl<TargetMapper, Target>
|
||||
implements TargetService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
27
src/main/resources/iet/ustb/sf/mapper/AnalysisMapper.xml
Normal file
27
src/main/resources/iet/ustb/sf/mapper/AnalysisMapper.xml
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="iet.ustb.sf.mapper.AnalysisMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="iet.ustb.sf.domain.Analysis">
|
||||
<result property="id" column="id" />
|
||||
<result property="targetId" column="target_id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="type" column="type" />
|
||||
<result property="isTime" column="is_time" />
|
||||
<result property="columnEn" column="column_en" />
|
||||
<result property="columnCn" column="column_cn" />
|
||||
<result property="showVal" column="show_val" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="sql" column="sql" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,target_id,name,type,is_time,column_en,
|
||||
column_cn,show_val,create_time,update_time,remark,
|
||||
sql
|
||||
</sql>
|
||||
</mapper>
|
22
src/main/resources/iet/ustb/sf/mapper/CategoryMapper.xml
Normal file
22
src/main/resources/iet/ustb/sf/mapper/CategoryMapper.xml
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="iet.ustb.sf.mapper.CategoryMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="iet.ustb.sf.domain.Category">
|
||||
<result property="id" column="id" />
|
||||
<result property="nameEn" column="name_en" />
|
||||
<result property="nameCn" column="name_cn" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="topic" column="topic" />
|
||||
<result property="organization" column="organization" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,name_en,name_cn,parent_id,create_time,update_time,
|
||||
topic,organization
|
||||
</sql>
|
||||
</mapper>
|
18
src/main/resources/iet/ustb/sf/mapper/JobLogMapper.xml
Normal file
18
src/main/resources/iet/ustb/sf/mapper/JobLogMapper.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="iet.ustb.sf.mapper.JobLogMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="iet.ustb.sf.domain.JobLog">
|
||||
<result property="id" column="id" />
|
||||
<result property="targetId" column="target_id" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="info" column="info" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,target_id,status,create_time,info
|
||||
</sql>
|
||||
</mapper>
|
34
src/main/resources/iet/ustb/sf/mapper/MonitorMapper.xml
Normal file
34
src/main/resources/iet/ustb/sf/mapper/MonitorMapper.xml
Normal file
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="iet.ustb.sf.mapper.MonitorMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="iet.ustb.sf.domain.Monitor">
|
||||
<result property="id" column="id" />
|
||||
<result property="targetId" column="target_id" />
|
||||
<result property="ruleId" column="rule_id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="type" column="type" />
|
||||
<result property="topic" column="topic" />
|
||||
<result property="organization" column="organization" />
|
||||
<result property="level" column="level_" />
|
||||
<result property="cycle" column="cycle" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="target" column="target" />
|
||||
<result property="val" column="val" />
|
||||
<result property="warnLevel" column="warn_level" />
|
||||
<result property="setDate" column="set_date" />
|
||||
<result property="xShow" column="x_show" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="warnType" column="warn_type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,target_id,rule_id,name,type,topic,
|
||||
organization,level_,cycle,unit,target,
|
||||
val,warn_level,set_date,x_show,create_time,
|
||||
update_time,warn_type
|
||||
</sql>
|
||||
</mapper>
|
35
src/main/resources/iet/ustb/sf/mapper/RuleMapper.xml
Normal file
35
src/main/resources/iet/ustb/sf/mapper/RuleMapper.xml
Normal file
@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="iet.ustb.sf.mapper.RuleMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="iet.ustb.sf.domain.Rule">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="type" column="type" />
|
||||
<result property="op" column="op" />
|
||||
<result property="target" column="target" />
|
||||
<result property="rate" column="rate" />
|
||||
<result property="warnLevel" column="warn_level" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="targetId" column="target_id" />
|
||||
<result property="cycle" column="cycle" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="xVar" column="x_var" />
|
||||
<result property="isPush" column="is_push" />
|
||||
<result property="cycleNum" column="cycle_num" />
|
||||
<result property="planLine" column="plan_line" />
|
||||
<result property="planArea" column="plan_area" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,name,type,op,target,rate,
|
||||
warn_level,remark,create_time,update_time,target_id,
|
||||
cycle,unit,parent_id,x_var,is_push,
|
||||
cycle_num,plan_line,plan_area
|
||||
</sql>
|
||||
</mapper>
|
23
src/main/resources/iet/ustb/sf/mapper/TargetDataMapper.xml
Normal file
23
src/main/resources/iet/ustb/sf/mapper/TargetDataMapper.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="iet.ustb.sf.mapper.TargetDataMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="iet.ustb.sf.domain.TargetData">
|
||||
<result property="targetId" column="target_id" />
|
||||
<result property="xShow" column="x_show" />
|
||||
<result property="id" column="id" />
|
||||
<result property="setDate" column="set_date" />
|
||||
<result property="cycle" column="cycle" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="val" column="val" />
|
||||
<result property="targetCycle" column="target_cycle" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
target_id,x_show,id,set_date,cycle,create_time,
|
||||
update_time,val,target_cycle
|
||||
</sql>
|
||||
</mapper>
|
39
src/main/resources/iet/ustb/sf/mapper/TargetMapper.xml
Normal file
39
src/main/resources/iet/ustb/sf/mapper/TargetMapper.xml
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="iet.ustb.sf.mapper.TargetMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="iet.ustb.sf.domain.Target">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="parentName" column="parent_name" />
|
||||
<result property="categoryId" column="category_id" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="type" column="type" />
|
||||
<result property="isKey" column="is_key" />
|
||||
<result property="targetInfo" column="target_info" />
|
||||
<result property="resultSql" column="result_sql" />
|
||||
<result property="level" column="level_" />
|
||||
<result property="parent" column="parent" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="tableName" column="table_name" />
|
||||
<result property="cycle" column="cycle" />
|
||||
<result property="status" column="status" />
|
||||
<result property="searchSql" column="search_sql" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="topic" column="topic" />
|
||||
<result property="organization" column="organization" />
|
||||
<result property="jobSql" column="job_sql" />
|
||||
<result property="hisSql" column="his_sql" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,name,parent_name,category_id,unit,type,
|
||||
is_key,target_info,result_sql,level_,parent,
|
||||
remark,table_name,cycle,status,search_sql,
|
||||
create_time,update_time,topic,organization,job_sql,
|
||||
his_sql
|
||||
</sql>
|
||||
</mapper>
|
23
src/main/resources/iet/ustb/sf/mapper/TargetOptionMapper.xml
Normal file
23
src/main/resources/iet/ustb/sf/mapper/TargetOptionMapper.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="iet.ustb.sf.mapper.TargetOptionMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="iet.ustb.sf.domain.TargetOption">
|
||||
<result property="id" column="id" />
|
||||
<result property="targetId" column="target_id" />
|
||||
<result property="columnName" column="column_name" />
|
||||
<result property="type" column="type" />
|
||||
<result property="op" column="op" />
|
||||
<result property="fun" column="fun" />
|
||||
<result property="val" column="val" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,target_id,column_name,type,op,fun,
|
||||
val,create_time,update_time
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue
Block a user