package com.zcloud.safetyDutyList.persistence.dataobject.tasklist;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jjb.saas.framework.repository.basedo.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 任务执行记录数据对象
 */
@Data
@TableName("safety_accountability_task_execution")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class TaskExecutionDO extends BaseDO {
    @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 = "评分时间")
    private LocalDateTime ratingTime;
    @ApiModelProperty(value = "评分部门ID")
    private Long ratingDepartmentId;
    @ApiModelProperty(value = "评分人ID")
    private Long ratingUserId;

    @ApiModelProperty(value = "执行内容")
    @TableField(exist = false)
    private String executeContent;
    @ApiModelProperty(value = "反馈周期类型")
    @TableField(exist = false)
    private Integer feedbackCycleType;
    @ApiModelProperty(value = "任务分值")
    @TableField(exist = false)
    private BigDecimal taskScore;
    @ApiModelProperty(value = "清单名称")
    @TableField(exist = false)
    private String taskListName;
    @ApiModelProperty(value = "任务级别")
    @TableField(exist = false)
    private Integer taskLevel;
    @ApiModelProperty(value = "责任岗位")
    @TableField(exist = false)
    private String responsibilityPost;
    @ApiModelProperty(value = "评分部门名称")
    @TableField(exist = false)
    private String ratingDepartmentName;
    @ApiModelProperty(value = "评分人姓名")
    @TableField(exist = false)
    private String ratingUserName;
    @ApiModelProperty(value = "反馈次数")
    @TableField(exist = false)
    private Integer feedbackCount;
    @ApiModelProperty(value = "当前周期是否已反馈：0-否 1-是")
    @TableField(exist = false)
    private Integer currentPeriodFeedback;
}
