云
2026-10-25 d54fbc9d4f8981fa0f7f613b33a28a8cd4f764ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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;
 
}