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_list_issue")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class TaskListIssueDO extends BaseDO {
    @ApiModelProperty(value = "下发记录UUID（业务主键）")
    private String taskIssueId;
    @ApiModelProperty(value = "清单UUID（关联清单模板表）")
    private String taskListId;
    @ApiModelProperty(value = "执行公司ID")
    private Long executeCorpId;
    @ApiModelProperty(value = "执行部门ID")
    private Long executeDepartmentId;
    @ApiModelProperty(value = "执行人员ID")
    private Long executeUserId;
    @ApiModelProperty(value = "下发状态：0-未下发 1-已下发")
    private Integer issueStatus;
    @ApiModelProperty(value = "下发时间")
    private LocalDateTime issueTime;
    @ApiModelProperty(value = "下发公司")
    private Long issueCorpId;
    @ApiModelProperty(value = "下发部门")
    private Long issueDepartmentId;
    @ApiModelProperty(value = "下发人员")
    private Long issueUserId;
    @ApiModelProperty(value = "执行周期开始时间")
    private LocalDateTime periodStartTime;
    @ApiModelProperty(value = "执行周期结束时间")
    private LocalDateTime periodEndTime;
    @ApiModelProperty(value = "状态：1-进行中 2-已完成 3-已关闭")
    private Integer status;
    @ApiModelProperty(value = "关闭时间")
    private LocalDateTime closeTime;
    @ApiModelProperty(value = "评分数")
    private BigDecimal ratingScore;
    @ApiModelProperty(value = "评分人ID")
    private Long ratingUserId;
    @ApiModelProperty(value = "评分部门ID")
    private Long ratingDepartmentId;

    @ApiModelProperty(value = "执行公司名称")
    @TableField(exist = false)
    private String executeCorpName;
    @ApiModelProperty(value = "执行部门名称")
    @TableField(exist = false)
    private String executeDepartmentName;
    @ApiModelProperty(value = "执行人员名称")
    @TableField(exist = false)
    private String executeUserName;
    @ApiModelProperty(value = "评分人姓名")
    @TableField(exist = false)
    private String ratingUserName;
    @ApiModelProperty(value = "评分部门名称")
    @TableField(exist = false)
    private String ratingDepartmentName;
    @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 Integer taskCount;
    @ApiModelProperty(value = "反馈状态：1-正常 2-异常")
    @TableField(exist = false)
    private Integer feedbackStatus;
    @ApiModelProperty(value = "是否启用：0-关 1-开")
    @TableField(exist = false)
    private Integer switchFlag;
}
