package com.zcloud.safetyDutyList.dto.clientobject.tasklist;

import com.alibaba.cola.dto.ClientObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 反馈异常客户端对象
 * <p>
 * 用于向前端返回反馈异常记录数据，
 * 包含异常周期标识、异常类型、异常时间等字段。
 * 通过联表查询获取清单名称、执行内容、异常类型名称等关联信息。
 */
@Data
public class FeedbackExceptionCO extends ClientObject {
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "反馈异常UUID（业务主键）")
    private String feedbackExceptionId;
    @ApiModelProperty(value = "任务详情UUID")
    private String taskDetailId;
    @ApiModelProperty(value = "任务清单UUID")
    private String taskListId;
    @ApiModelProperty(value = "异常周期标识")
    private String exceptionPeriodFlag;
    @ApiModelProperty(value = "异常周期开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime exceptionPeriodStartTime;
    @ApiModelProperty(value = "异常周期结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime exceptionPeriodEndTime;
    @ApiModelProperty(value = "异常类型：1-未按时反馈 2-反馈内容异常 3-其他")
    private Integer exceptionType;
    @ApiModelProperty(value = "反馈异常信息")
    private String exceptionContent;
    @ApiModelProperty(value = "异常时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime exceptionTime;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "清单名称")
    private String taskListName;
    @ApiModelProperty(value = "执行内容")
    private String executeContent;
}
