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.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

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

@TableName("roll_data")
@Schema(description = "轧辊数据")
@Getter
@Setter
@Builder
public class RollData implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "rollid",type = IdType.INPUT)
    @Schema(description = "轧辊号")
    private String rollid;

    @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 status;

    @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 = "Update Time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updtime;
}
