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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ho.common.tools.constant.CommonConstant;
import com.ho.common.tools.entity.OrderForm;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Description 流程历史任务对象
 * Author yule
 * Date 2023/2/8 15:42
 */
@Data
public class HisTaskResp {

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

    @ApiModelProperty(value = "任务耗时")
    private BigDecimal taskTime;

    @ApiModelProperty(value = "执行人名称")
    private String userName = "";

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = CommonConstant.DATE)
    private Date endTime;

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

    @ApiModelProperty(value = "状态 : 1同意 0拒绝")
    private Integer status;

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

    @ApiModelProperty(value = "执行人名称")
    private List<String> candidates = new ArrayList<>();

}
