云
2026-10-26 0857cf1830039d60ce73005f386f284cf575e511
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
116
117
118
119
120
121
122
123
124
package cn.iocoder.yudao.module.mes.dal.dataobject.em.record;
 
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_record")
@KeySequence("mes_em_record_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesEmRecordDO extends BaseDO {
 
    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 计量点编号
     */
    private Long meterId;
    /**
     * 计量点编码
     */
    private String meterCode;
    /**
     * 计量点名称
     */
    private String meterName;
    /**
     * 能源类型
     *
     * 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmEnergyTypeEnum}
     */
    private Integer energyType;
    /**
     * 计量单位
     */
    private String unit;
    /**
     * 倍率
     */
    private BigDecimal ratio;
    /**
     * 折标煤系数(kgce/计量单位)
     */
    private BigDecimal coalFactor;
    /**
     * 所属车间编号
     */
    private Long workshopId;
    /**
     * 所属车间名称
     */
    private String workshopName;
    /**
     * 所属产线编号
     */
    private Long lineId;
    /**
     * 所属产线名称
     */
    private String lineName;
    /**
     * 关联设备编号
     */
    private Long machineryId;
    /**
     * 关联设备名称
     */
    private String machineryName;
    /**
     * 抄表日期
     */
    private LocalDate recordDate;
    /**
     * 期初读数
     */
    private BigDecimal prevReading;
    /**
     * 期末读数
     */
    private BigDecimal reading;
    /**
     * 实际用量((期末读数 - 期初读数) × 倍率)
     */
    private BigDecimal usageAmount;
    /**
     * 单价(元/计量单位)
     */
    private BigDecimal price;
    /**
     * 费用(元)
     */
    private BigDecimal cost;
    /**
     * 数据来源
     *
     * 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmRecordSourceEnum}
     */
    private Integer source;
    /**
     * 备注
     */
    private String remark;
 
}