package com.ho.flow.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ho.common.tools.constant.CommonConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

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

/**
 * 
 * @TableName work_order
 */
@Getter
@Setter
@ToString
public class WorkOrderOld implements Serializable {
    /**
     * 
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 工单id
     */
    @ApiModelProperty(value = "工单id")
    private String orderId;

    /**
     * 分组id
     */
    @ApiModelProperty(value = "分组id")
    private Integer groupId;

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    private Integer deptId;

    /**
     * 电站id
     */
    @ApiModelProperty(value = "电站id")
    private Integer stationId;

    /**
     * 发起人id
     */
    @ApiModelProperty(value = "发起人id")
    private String fromId;

    /**
     * 电话号码
     */
    @ApiModelProperty(value = "电话号码")
    private String phone;

    /**
     * 执行人id
     */
    @ApiModelProperty(value = "执行人id")
    private String toId;

    /**
     * 告警事件id
     */
    @ApiModelProperty(value = "告警事件id")
    private Long eventId;

    /**
     * 告警等级
     */
    @ApiModelProperty(value = "告警等级")
    private Integer eventLevel;

    /**
     * 新建描述
     */
    @ApiModelProperty(value = "故障描述")
    @Length(max = 10,message = "工单描述不能超过500个字符")
    private String desc;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "生成时间")
    @JsonFormat(pattern= CommonConstant.DATE)
    private Date createTime;

    /**
     * 接收时间
     */
    @ApiModelProperty(value = "接收时间")
    @JsonFormat(pattern= CommonConstant.DATE)
    private Date receiveTime;

    /**
     * 完成时间
     */
    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern= CommonConstant.DATE)
    private Date completeTime;

    /**
     * 工单状态
     */
    @ApiModelProperty(value = "工单状态")
    private Integer workOrderStatus;

    /**
     * 工单类型
     */
    @ApiModelProperty(value = "工单类型")
    private Integer workOrderType;


}