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 TaskDetailCO extends ClientObject {
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "明细UUID（业务主键）")
    private String taskDetailId;
    @ApiModelProperty(value = "任务清单ID")
    private String taskListId;
    @ApiModelProperty(value = "执行内容")
    private String executeContent;
    @ApiModelProperty(value = "反馈周期类型：1-每月 2-季度 3-半年 4-年")
    private Integer feedbackCycleType;
    @ApiModelProperty(value = "反馈周期名称")
    private String feedbackCycleName;
    @ApiModelProperty(value = "任务状态：1-进行中 2-已完成 3-已关闭")
    private Integer taskStatus;
    @ApiModelProperty(value = "反馈状态：1-正常 2-存在异常")
    private Integer feedbackStatus;
    @ApiModelProperty(value = "任务分值")
    private BigDecimal taskScore;
    @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 = "评分人ID")
    private Long ratingUserId;
}
