package com.fizz.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

@Data
@Schema(description = "钢卷生产数据表")
public class CrmPdoExcoil implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    private Long id;

    @Schema(description = "成品卷")
    private String exitMatId;

    @Schema(description = "来料卷")
    private String entryMatId;

    @Schema(description = "分切数")
    private Integer subId;

    @Schema(description = "开始位置")
    private Double startPosition;

    @Schema(description = "结束位置")
    private Double endPosition;

    @Schema(description = "计划id")
    private Long planId;

    @Schema(description = "计划号")
    private String planNo;

    @Schema(description = "产品类型")
    private String prodCode;

    @Schema(description = "班号")
    private String groupNo;

    @Schema(description = "组号")
    private String shiftNo;

    @Schema(description = "状态")
    private String status;

    @Schema(description = "钢种")
    private String steelGrade;

    @Schema(description = "来料厚度")
    private Double entryThick;

    @Schema(description = "来料宽带")
    private Double entryWidth;

    @Schema(description = "来料长度")
    private Double entryLength;

    @Schema(description = "来料重量")
    private Double entryWeight;

    @Schema(description = "上表面镀锌")
    private Double weightTop;

    @Schema(description = "下表面镀锌")
    private Double weightBottom;

    @Schema(description = "成品长度")
    private Double exitLength;

    @Schema(description = "成品带涂料重量")
    private Double exitNetWeight;

    @Schema(description = "理论重量")
    private Double theoryWeight;

    @Schema(description = "实际重量")
    private Double actualWeight;

    @Schema(description = "成品外径")
    private Double exitOuterDiameter;

    @Schema(description = "成品厚度")
    private Double exitThickness;

    @Schema(description = "成品宽度")
    private Double exitWidth;

    @Schema(description = "客户")
    private String customer;

    @Schema(description = "上线时间")
    private LocalDateTime onlineTime;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "0-未删除 时间戳:已删除")
    private Long delFlag;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    @Schema(description = "机组号")
    private String unitCode;

    @Schema(description = "工序号")
    private String processCode;

    @Schema(description = "是否尾卷")
    private Boolean lastFlag;

    @Schema(description = "是否分卷")
    private Boolean separateFlag;

    @Schema(description = "计划来源：L3-L3计划，MANUAL-人工")
    private String planOrigin;
}