package cn.iocoder.yudao.module.mes.dal.dataobject.em.quota;
|
|
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;
|
|
/**
|
* MES 能耗考核指标 DO
|
*
|
* 按全厂 / 车间 / 产线 / 设备配置日或月的能耗定额,并设置超限预警比例。
|
*
|
* @author 超级管理员
|
*/
|
@TableName("mes_em_quota")
|
@KeySequence("mes_em_quota_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class MesEmQuotaDO extends BaseDO {
|
|
/**
|
* 编号
|
*/
|
@TableId
|
private Long id;
|
/**
|
* 指标名称
|
*/
|
private String name;
|
/**
|
* 能源类型
|
*
|
* 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmEnergyTypeEnum}
|
*/
|
private Integer energyType;
|
/**
|
* 考核对象类型
|
*
|
* 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmQuotaObjectTypeEnum}
|
*/
|
private Integer objectType;
|
/**
|
* 考核对象编号(全厂时为空)
|
*/
|
private Long objectId;
|
/**
|
* 考核对象名称(保存时冗余)
|
*/
|
private String objectName;
|
/**
|
* 考核周期
|
*
|
* 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmQuotaPeriodEnum}
|
*/
|
private Integer periodType;
|
/**
|
* 定额值
|
*/
|
private BigDecimal quotaValue;
|
/**
|
* 计量单位
|
*/
|
private String unit;
|
/**
|
* 预警比例(超出定额多少百分比触发警告)
|
*/
|
private BigDecimal warnRatio;
|
/**
|
* 严重预警比例(超出定额多少百分比触发严重预警)
|
*/
|
private BigDecimal alarmRatio;
|
/**
|
* 环比异常阈值(%)
|
*/
|
private BigDecimal momWarnRatio;
|
/**
|
* 同比异常阈值(%)
|
*/
|
private BigDecimal yoyWarnRatio;
|
/**
|
* 状态
|
*
|
* 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmMeterStatusEnum}
|
*/
|
private Integer status;
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|