package cn.iocoder.yudao.module.mes.controller.admin.dc.record.vo;
|
|
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
|
import cn.idev.excel.annotation.ExcelProperty;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
@Schema(description = "管理后台 - MES 采集记录 Response VO")
|
@Data
|
@ExcelIgnoreUnannotated
|
public class MesDcRecordRespVO {
|
|
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
private Long id;
|
|
@Schema(description = "采集设备ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
private Long deviceId;
|
|
@Schema(description = "设备编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "DC001")
|
@ExcelProperty("设备编号")
|
private String deviceCode;
|
|
@Schema(description = "设备名称", example = "一车间鸡爪计数器")
|
@ExcelProperty("设备名称")
|
private String deviceName;
|
|
@Schema(description = "生产工单ID", example = "2048")
|
private Long workOrderId;
|
|
@Schema(description = "生产工单编号", example = "WO202611100001")
|
@ExcelProperty("生产工单编号")
|
private String workOrderCode;
|
|
@Schema(description = "产品ID", example = "88")
|
private Long productId;
|
|
@Schema(description = "产品编码", example = "P001")
|
@ExcelProperty("产品编码")
|
private String productCode;
|
|
@Schema(description = "产品名称", example = "自热火锅")
|
@ExcelProperty("产品名称")
|
private String productName;
|
|
@Schema(description = "生产批次号", example = "B20261110001")
|
@ExcelProperty("生产批次号")
|
private String batchCode;
|
|
@Schema(description = "设备侧记录序号", example = "0001")
|
@ExcelProperty("设备记录序号")
|
private String recordNo;
|
|
@Schema(description = "本次采集数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "12")
|
@ExcelProperty("采集数量")
|
private Integer quantity;
|
|
@Schema(description = "设备累计数量", example = "1234")
|
private Integer totalQuantity;
|
|
@Schema(description = "本次重量(g)", example = "3500.50")
|
@ExcelProperty("重量(g)")
|
private BigDecimal weight;
|
|
@Schema(description = "设备累计重量(g)", example = "123456.70")
|
private BigDecimal totalWeight;
|
|
@Schema(description = "设备采集时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
@ExcelProperty("采集时间")
|
private LocalDateTime recordTime;
|
|
@Schema(description = "服务器接收时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
@ExcelProperty("接收时间")
|
private LocalDateTime receiveTime;
|
|
@Schema(description = "是否在线实时上报", example = "true")
|
private Boolean online;
|
|
@Schema(description = "上报方式", example = "在线")
|
@ExcelProperty("上报方式")
|
private String onlineName;
|
|
@Schema(description = "记录状态:0 正常 / 1 已更正 / 2 已作废", example = "0")
|
private Integer status;
|
|
@Schema(description = "记录状态名称", example = "正常")
|
@ExcelProperty("记录状态")
|
private String statusName;
|
|
@Schema(description = "更正前的原始数量", example = "11")
|
@ExcelProperty("原始数量")
|
private Integer originalQuantity;
|
|
@Schema(description = "更正/作废原因", example = "设备误计数,按实际数量更正")
|
@ExcelProperty("更正/作废原因")
|
private String correctReason;
|
|
@Schema(description = "备注")
|
private String remark;
|
|
@Schema(description = "原始上报报文")
|
private String rawData;
|
|
@Schema(description = "创建时间")
|
private LocalDateTime createTime;
|
|
}
|