package cn.iocoder.yudao.module.mes.dal.dataobject.em.alert; 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; import java.time.LocalDate; import java.time.LocalDateTime; /** * MES 能耗预警记录 DO * * @author 超级管理员 */ @TableName("mes_em_alert") @KeySequence("mes_em_alert_seq") @Data @EqualsAndHashCode(callSuper = true) @ToString(callSuper = true) @Builder @NoArgsConstructor @AllArgsConstructor public class MesEmAlertDO extends BaseDO { /** * 编号 */ @TableId private Long id; /** * 预警编号 */ private String alertNo; /** * 计量点编号(定额预警为 0) */ private Long meterId; /** * 计量点编码 */ private String meterCode; /** * 计量点名称 */ private String meterName; /** * 能源类型 * * 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmEnergyTypeEnum} */ private Integer energyType; /** * 预警类型 * * 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmAlertTypeEnum} */ private Integer alertType; /** * 预警级别 * * 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmAlertLevelEnum} */ private Integer alertLevel; /** * 预警日期 */ private LocalDate alertDate; /** * 考核对象类型 * * 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmQuotaObjectTypeEnum} */ private Integer objectType; /** * 考核对象编号(非定额预警为 0) */ private Long objectId; /** * 考核对象名称 */ private String objectName; /** * 实际值 */ private BigDecimal actualValue; /** * 阈值 */ private BigDecimal thresholdValue; /** * 计量单位 */ private String unit; /** * 预警内容 */ private String content; /** * 处理状态 * * 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmAlertStatusEnum} */ private Integer status; /** * 处理人编号 */ private Long handleUserId; /** * 处理人名称 */ private String handleUserName; /** * 处理时间 */ private LocalDateTime handleTime; /** * 处理说明 */ private String handleRemark; }