package cn.cslg.report.common.model.vo;


import cn.cslg.report.common.model.BaseVO;
import cn.cslg.report.entity.Report;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

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

/**
 * @author lrj
 * @date 2022-11-9
 * @description 任务VO类
 */
@Data
@Accessors(chain = true)
@Schema(description="任务VO",required = true)
public class TaskVO extends BaseVO {

    @Schema(description = "报告信息")
    private Report report;
    @Schema(description = "报告Id")
    private Integer reportId;
    @Schema(description = "参与人Id列表")
    private List<Integer> personIds;

    @Schema(description = "任务名称")
    private String taskName;

    @Schema(description = "任务Id")
    private String taskId;

    @Schema(description = "任务类型 0开卷审核任务")
    private Integer type;

    /**
     * 任务开始时间
     */
    @Schema(description = "任务开始时间")
    private Date beginTime;

    /**
     * 结束时间
     */
    @Schema(description = "任务结束时间")
    private Date endTime;

    @Schema(description = "任务状态 0未完成 1已完成")
    private Integer taskStatus;

    @Schema(description = "登录人在任务中的身份 0创建人 1处理人")
    private Integer roleInTask;
@Schema(description = "人员专题号对象列表")
private List<personPatents> personPatents;

    @Schema(description = "人员专题号对象")
    @Data
    public static class personPatents{
        @Schema(description = "人员Id")
            private Integer personId;
        @Schema(description = "专题号列表")
        private List<String> patentNos;


    }
}
