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.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 任务执行记录客户端对象
 * <p>
 * 用于向前端返回任务执行记录数据，
 * 包含任务状态、反馈状态、评分等字段，
 * 以及通过联表查询获取的名称、反馈次数等聚合字段。
 */
@Data
public class TaskExecutionCO extends ClientObject {
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "任务执行UUID（业务主键）")
    private String taskExecutionId;
    @ApiModelProperty(value = "清单下发记录UUID")
    private String taskIssueId;
    @ApiModelProperty(value = "任务模板UUID")
    private String taskDetailId;
    @ApiModelProperty(value = "清单UUID")
    private String taskListId;
    @ApiModelProperty(value = "任务状态：1-进行中 2-已完成 3-已关闭")
    private Integer taskStatus;
    @ApiModelProperty(value = "反馈状态：1-正常 2-异常")
    private Integer feedbackStatus;
    @ApiModelProperty(value = "任务评分")
    private BigDecimal taskRating;
    @ApiModelProperty(value = "评分时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ratingTime;
    @ApiModelProperty(value = "评分部门ID")
    private Long ratingDepartmentId;
    @ApiModelProperty(value = "评分部门名称")
    private String ratingDepartmentName;
    @ApiModelProperty(value = "评分人ID")
    private Long ratingUserId;
    @ApiModelProperty(value = "评分人姓名")
    private String ratingUserName;
    @ApiModelProperty(value = "执行内容")
    private String executeContent;
    @ApiModelProperty(value = "反馈周期类型")
    private Integer feedbackCycleType;
    @ApiModelProperty(value = "任务分值")
    private BigDecimal taskScore;
    @ApiModelProperty(value = "清单名称")
    private String taskListName;
    @ApiModelProperty(value = "任务级别")
    private Integer taskLevel;
    @ApiModelProperty(value = "责任岗位")
    private String responsibilityPost;
    @ApiModelProperty(value = "反馈次数")
    private Integer feedbackCount;
    @ApiModelProperty(value = "当前周期是否已反馈：0-否 1-是")
    private Integer currentPeriodFeedback;
}
