package cn.iocoder.yudao.module.bi.dal.dataobject.decision;
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
import java.math.BigDecimal;
|
|
/**
|
* KPI指标定义 DO
|
*
|
* @author 超级管理员
|
*/
|
@TableName("bi_kpi_definition")
|
@KeySequence("bi_kpi_definition_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class BiKpiDefinitionDO extends BaseDO {
|
|
@TableId
|
private Long id;
|
|
/**
|
* KPI编码
|
*/
|
private String code;
|
|
/**
|
* KPI名称
|
*/
|
private String name;
|
|
/**
|
* 分类:power_supply/device_operation/production/quality/procurement/safety
|
*/
|
private String category;
|
|
/**
|
* 单位
|
*/
|
private String unit;
|
|
/**
|
* 数据来源:sql/interface/manual
|
*/
|
private String dataSource;
|
|
/**
|
* 查询SQL
|
*/
|
private String querySql;
|
|
/**
|
* 默认图表类型
|
*/
|
private String chartType;
|
|
/**
|
* 预警阈值-警告
|
*/
|
private BigDecimal thresholdWarn;
|
|
/**
|
* 预警阈值-严重
|
*/
|
private BigDecimal thresholdCritical;
|
|
/**
|
* 比较运算符:>/</>=/<=
|
*/
|
private String comparisonOperator;
|
|
/**
|
* 刷新间隔(秒)
|
*/
|
private Integer refreshInterval;
|
|
/**
|
* 排序
|
*/
|
private Integer sort;
|
|
/**
|
* 状态:0-禁用 1-启用
|
*/
|
private Integer status;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|