package com.fizz.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

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

/**
 * <p>
 * 半卷整卷回退表
 * </p>
 *
 * @author baomidou
 * @since 2023-05-17
 */
@Getter
@Setter
@TableName("cpg_half_return")
@Schema(title = "CpgHalfReturn对象", description = "半卷整卷回退表")
public class HalfReturn implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

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

    @Schema(description = "工艺规程")
    private String setupVersion;

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

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

    @Schema(description = "钢卷产品代码")
    private String prodCode;

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

    @Schema(description = "成品卷重")
    private Double exitMatWeight;

    @Schema(description = "回退卷重")
    private Double returnMatWeight;

    @Schema(description = "回退时间")
    private LocalDateTime returnMatTime;

    @Schema(description = "回退类型:ALL_RETURN-整卷回退, HALF_RETURN-半卷回退")
    private String returnType;

    @Schema(description = "回退备注")
    private String returnRemark;

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

    @Schema(description = "操作人")
    private String operator;

    @Schema(description = "操作人id")
    private String operatorId;

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

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