云
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
package cn.iocoder.yudao.module.mes.dal.dataobject.em.meter;
 
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;
 
/**
 * MES 能耗计量点 DO
 *
 * 一个计量点可以挂在车间、产线或重点高耗能设备上,用于采集某一类能源的用量。
 *
 * @author 超级管理员
 */
@TableName("mes_em_meter")
@KeySequence("mes_em_meter_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesEmMeterDO extends BaseDO {
 
    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 计量点编码
     */
    private String code;
    /**
     * 计量点名称
     */
    private String name;
    /**
     * 能源类型
     *
     * 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmEnergyTypeEnum}
     */
    private Integer energyType;
    /**
     * 计量单位
     */
    private String unit;
    /**
     * 表号(现场表计编号)
     */
    private String meterNo;
    /**
     * 所属车间编号
     */
    private Long workshopId;
    /**
     * 所属车间名称
     */
    private String workshopName;
    /**
     * 所属产线编号
     */
    private Long lineId;
    /**
     * 所属产线名称
     */
    private String lineName;
    /**
     * 关联设备编号
     */
    private Long machineryId;
    /**
     * 关联设备名称
     */
    private String machineryName;
    /**
     * 倍率(读数 × 倍率 = 实际用量)
     */
    private BigDecimal ratio;
    /**
     * 初始读数
     */
    private BigDecimal initialReading;
    /**
     * 折标煤系数(kgce/计量单位)
     */
    private BigDecimal coalFactor;
    /**
     * 日用量异常上限(超过后触发疑似跑冒滴漏预警,为空表示不检测)
     */
    private BigDecimal leakThreshold;
    /**
     * 责任人编号
     */
    private Long chargeUserId;
    /**
     * 投用日期
     */
    private LocalDate installDate;
    /**
     * 状态
     *
     * 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmMeterStatusEnum}
     */
    private Integer status;
    /**
     * 备注
     */
    private String remark;
 
}