package com.fizz.business.domain;

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

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

@Getter
@Setter
@Builder
@TableName("roll_history")
@Schema( description = "轧辊历史")
public class RollHistory implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "轧辊号")
    private String rollid;

    @Schema(description = "换辊id")
    private String changeid;

    @Schema(description = "班")
    private String shift;

    @Schema(description = "组")
    private String crew;

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

    @Schema(description = "类型")
    private String type;

    @Schema(description = "位置")
    private String position;

    @Schema(description = "机架号")
    private Integer standid;

    @Schema(description = "消化")
    private Integer composition;

    @Schema(description = "直径")
    private Double diameter;

    @Schema(description = "粗糙度")
    private Double rough;

    @Schema(description = "凸度")
    private Double crown;

    @Schema(description = "轧制长度")
    private Double rolledLength;

    @Schema(description = "轧制重量")
    private Double rolledWeight;

    @Schema(description = "轧制数量")
    private Integer rolledCount;

    @Schema(description = "总轧制重量")
    private Double totalRolledWeight;

    @Schema(description = "总轧制长度")
    private Double totalRolledLength;

    @Schema(description = "总轧制数量")
    private Integer totalRolledCount;

    @Schema(description = "修理次数")
    private Integer grindCount;

    @Schema(description = "换辊类型")
    private String changeType;

    @Schema(description = "Installation Time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime instalTime;

    @Schema(description = "Deinstallation Time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deinstalTime;

    @Schema(description = "changeTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime changeTime;
}
