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.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("pro_stoppage")
@Schema(description = "ProStoppage对象")
public class ProStoppage implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "停机ID")
    @TableId(value = "stopid", type = IdType.AUTO)
    private Long stopid;

    @Schema(description = "钢卷号")
    private String coilid;

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

    @Schema(description = "区域")
    private String area;

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

    @Schema(description = "设备")
    private String seton;

    @Schema(description = "开始时间", format = "date", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;

    @Schema(description = "结束时间", format = "date", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;

    @Schema(description = "停机时长")
    private BigDecimal duration;

    @Schema(description = "更新时间", format = "date", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String insdate;

    @Schema(description = "停机类型")
    private String stopType;

    @Schema(description = "停机原因")
    private String remark;

}
