package com.ktg.iscs.domain.vo.ticket;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ktg.common.core.domain.model.BaseBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 作业票对象 is_job_ticket
 *
 * @author cgj
 * @date 2024-10-18
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PageTicketVO extends BaseBean
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "作业票ID")
    private Long ticketId;

    @ApiModelProperty(value = "作业票编号")
    private String ticketCode;

    @ApiModelProperty(value = "作业票名称")
    private String ticketName;

    @ApiModelProperty(value = "所属车间ID")
    private Long workshopId;

    @ApiModelProperty(value = "所属车间Name")
    private String workshopName;

    @ApiModelProperty(value = "所属区域ID")
    private Long workareaId;

    @ApiModelProperty(value = "所属区域Name")
    private String workareaName;

    @ApiModelProperty(value = "所属SOPID")
    private Long sopId;

    @ApiModelProperty(value = "作业票类型")
    private String ticketType;

    @ApiModelProperty(value = "作业票详情")
    private String ticketContent;

    @ApiModelProperty(value = "作业票状态")
    private String ticketStatus;

    @ApiModelProperty(value = "作业票开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date ticketStartTime;

    @ApiModelProperty(value = "作业票结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date ticketEndTime;

    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）")
    private String delFlag;

    @ApiModelProperty(value = "隔离点数量")
    private Integer pointCount;

    @ApiModelProperty(value = "所属岗位ID")
    private Long workstationId;

    @ApiModelProperty(value = "所属岗位Name")
    private String workstationName;

    @ApiModelProperty(value = "设备工艺ID")
    private Long machineryId;

    @ApiModelProperty(value = "设备工艺name")
    private String machineryName;

}
