package com.zksy.manhole.dto.in;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 新增工单-入参
 *
 * @author xianggx
 */
@Data
@ApiModel(value = "新增工单-入参", description = "新增工单-入参")
public class WorkOrderAddInDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "报警ID")
    private String alarmId;

    @ApiModelProperty(value = "案件ID")
    private Long caseId;

    @ApiModelProperty(value = "设备ID", required = true)
    private String deviceId;

    @ApiModelProperty(value = "工单类型：1-故障维修 2-日常巡检 3-设备保养", required = true)
    private Integer orderType;

    @ApiModelProperty(value = "工单优先级：1-紧急 2-一般 3-低", required = true)
    private Integer orderLevel;

    @ApiModelProperty(value = "工单问题描述", required = true)
    private String orderDesc;

    @ApiModelProperty(value = "负责部门ID")
    private Long deptId;

    @ApiModelProperty(value = "计划完成时间")
    @JsonFormat(locale = "zh", pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date planFinishTime;
}
