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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ktg.iscs.domain.IsJobTicketPoints;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 作业票对象 is_job_ticket
 *
 * @author cgj
 * @date 2024-10-18
 */
@Data
public class AddJobTicketDTO
{

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

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

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

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

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

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

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

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

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

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

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

    @ApiModelProperty(value = "作业票开始时间")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ticketStartTime;

    @ApiModelProperty(value = "作业票结束时间")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ticketEndTime;

    @ApiModelProperty(value = "隔离点的数据")
    private List<IsJobTicketPoints> pointsList;

    @ApiModelProperty(value = "关联人员信息")
    private List<AddTicketUserDTO> ticketUserDTOList;

}
