package com.ho.flow.vo.resp.workorder;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ho.common.tools.entity.OrderForm;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

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

/**
 * @author fancl
 * @desc: 任务列表元素
 * @date 2023/2/7
 */
@Setter
@Getter
@ToString
@EqualsAndHashCode
public class TaskDone {

    @ApiModelProperty(value = "任务id")
    @JsonSerialize(using = ToStringSerializer.class)
    private String id;

    @ApiModelProperty(value = "工单类型 1:故障检修单,2:电站巡检单,3:电站清洗单")
    private Integer orderType;

    @ApiModelProperty(value = "任务名称")
    private String planTitle;

    @ApiModelProperty(value = "任务主题")
    private String title;

    @ApiModelProperty(value = "发起人id")
    private String startUserId;

    @ApiModelProperty(value = "发起人名字")
    private String startUserName;

    @ApiModelProperty(value = "发送时间")
    private Date startTime;

    @ApiModelProperty(value = "状态: ")
    private String status;

    @ApiModelProperty(value = "租客id")
    String tenantId;

    @ApiModelProperty(value = "优先级")
    private String priority;

    @ApiModelProperty(value = "流程id")
    private String processInstanceId;

    @ApiModelProperty(value = "表单数据")
    OrderForm orderForm;

    @ApiModelProperty(value = "转发人员id")
    List<String> candidateUserList;

    @ApiModelProperty(value = "发起人员id")
    String sender;

    @ApiModelProperty(value = "任务名称")
    String taskName;

    @ApiModelProperty(value = "建议")
    String suggestion;

    @ApiModelProperty(value = "流转人")
    String assignee;

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