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;
import java.time.YearMonth;

/**
 * 清单下发记录客户端对象
 * <p>
 * 用于向前端返回清单下发记录数据，
 * 包含执行公司、周期、状态、评分等字段，
 * 以及通过联表查询获取的名称、任务数、反馈状态等聚合字段。
 */
@Data
public class TaskListIssueCO extends ClientObject {
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "下发记录UUID（业务主键）")
    private String taskIssueId;
    @ApiModelProperty(value = "清单UUID")
    private String taskListId;
    @ApiModelProperty(value = "清单名称")
    private String taskListName;
    @ApiModelProperty(value = "任务级别")
    private Integer taskLevel;
    @ApiModelProperty(value = "责任岗位")
    private String responsibilityPost;
    @ApiModelProperty(value = "执行公司ID")
    private Long executeCorpId;
    @ApiModelProperty(value = "执行公司名称")
    private String executeCorpName;
    @ApiModelProperty(value = "执行部门ID")
    private Long executeDepartmentId;
    @ApiModelProperty(value = "执行部门名称")
    private String executeDepartmentName;
    @ApiModelProperty(value = "执行人员ID")
    private Long executeUserId;
    @ApiModelProperty(value = "执行人员名称")
    private String executeUserName;
    @ApiModelProperty(value = "下发状态：0-未下发 1-已下发")
    private Integer issueStatus;
    @ApiModelProperty(value = "下发时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime issueTime;
    @ApiModelProperty(value = "下发公司")
    private Long issueCorpId;
    @ApiModelProperty(value = "下发部门")
    private Long issueDepartmentId;
    @ApiModelProperty(value = "下发人员")
    private Long issueUserId;
    @ApiModelProperty(value = "执行周期开始时间")
    private YearMonth periodStartTime;
    @ApiModelProperty(value = "执行周期结束时间")
    private YearMonth periodEndTime;
    @ApiModelProperty(value = "状态：1-进行中 2-已完成 3-已关闭")
    private Integer status;
    @ApiModelProperty(value = "关闭时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime closeTime;
    @ApiModelProperty(value = "评分数")
    private BigDecimal ratingScore;
    @ApiModelProperty(value = "评分人ID")
    private Long ratingUserId;
    @ApiModelProperty(value = "评分人姓名")
    private String ratingUserName;
    @ApiModelProperty(value = "评分部门ID")
    private Long ratingDepartmentId;
    @ApiModelProperty(value = "评分部门名称")
    private String ratingDepartmentName;
    @ApiModelProperty(value = "任务数")
    private Integer taskCount;
    @ApiModelProperty(value = "反馈状态：1-正常 2-异常")
    private Integer feedbackStatus;
    @ApiModelProperty(value = "是否启用：0-关 1-开")
    private Integer switchFlag;
}
