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;
|
|
}
|