package com.xunmei.core.resumption.vo.resumptionRecord;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author jingyuanchao
 * @date 2022/5/11 15:47
 */
@Data
public class ResumptionRecordPageVo {
    @ApiModelProperty("履职任务id")
    private String resumptionId;

    /**任务名称*/
    private String taskName;

    @ApiModelProperty("计划名称")
    private String planName;

    @ApiModelProperty("计划id")
    private Long planId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("任务开始时间")
    private Date planStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("任务结束时间")
    private Date planEndTime;


    @ApiModelProperty(value = "机构id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orgId;

    @ApiModelProperty("机构名称")
    private String orgName;

//    @ApiModelProperty("上级机构编码")
//    private Long parentOrgId;

    @ApiModelProperty("上级机构")
    private String parentOrgName;

//    @ApiModelProperty("时间")
//    private String time;

//    @ApiModelProperty("状态 0:待履职 1:按时完成 3:未完成 5:补登完成")
    private String status;

    @ApiModelProperty("履职角色id")
    private Long roleId;

    @ApiModelProperty("履职角色")
    private String roleName;

    @ApiModelProperty("提交时间")
    private Date submitTime;

    @ApiModelProperty("提交人")
    private String submitter;
/*    @ApiModelProperty("提交时间")
    private Date executeTime;*/


    @ApiModelProperty("异常要点数量")
    private int abnormalDataNums;

    /**日期*/
    private Date ymd;

//    @ApiModelProperty("二级机构")
//    private String secondaryOrgName;
//
//    @ApiModelProperty("三级机构")
//    private String thirdOrgName;
}
