吴羡
26 分钟以前 3d416372d21acb1a554e4e3eb96e2f9dead6d5a4
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
125
126
127
128
129
package cn.iocoder.yudao.module.mes.dal.dataobject.dc.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.LocalDateTime;
 
/**
 * MES 数据采集记录 DO
 *
 * @author 超级管理员
 */
@TableName("mes_dc_record")
@KeySequence("mes_dc_record_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesDcRecordDO extends BaseDO {
 
    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 采集设备编号
     *
     * 关联 {@link cn.iocoder.yudao.module.mes.dal.dataobject.dc.device.MesDcDeviceDO#getId()}
     */
    private Long deviceId;
    /**
     * 设备编号(冗余)
     */
    private String deviceCode;
    /**
     * 设备名称(冗余)
     */
    private String deviceName;
    /**
     * 采集时绑定的生产工单编号
     */
    private Long workOrderId;
    /**
     * 生产工单编号(冗余)
     */
    private String workOrderCode;
    /**
     * 产品编号
     */
    private Long productId;
    /**
     * 产品编码(冗余)
     */
    private String productCode;
    /**
     * 产品名称(冗余)
     */
    private String productName;
    /**
     * 生产批次号
     */
    private String batchCode;
    /**
     * 设备侧记录序号
     */
    private String recordNo;
    /**
     * 设备侧唯一键(用于幂等)
     */
    private String bizId;
    /**
     * 本次采集数量
     */
    private Integer quantity;
    /**
     * 设备累计数量(设备只报累计值时用于计算差值)
     */
    private Integer totalQuantity;
    /**
     * 本次重量(g)
     */
    private BigDecimal weight;
    /**
     * 设备累计重量(g)
     */
    private BigDecimal totalWeight;
    /**
     * 设备采集时间
     */
    private LocalDateTime recordTime;
    /**
     * 服务器接收时间
     */
    private LocalDateTime receiveTime;
    /**
     * 是否在线实时上报
     */
    private Boolean online;
    /**
     * 原始上报报文
     */
    private String rawData;
    /**
     * 记录状态
     *
     * 枚举 {@link cn.iocoder.yudao.module.mes.enums.dc.MesDcRecordStatusEnum}
     */
    private Integer status;
    /**
     * 更正前的原始数量(首次更正/作废时留痕)
     */
    private Integer originalQuantity;
    /**
     * 更正/作废原因
     */
    private String correctReason;
    /**
     * 备注
     */
    private String remark;
 
}