package com.yingpaipay.business.domain.vo;

import com.yingpaipay.business.domain.DocumentQcTaskDetail;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 文档质控细节视图对象 document_quality_control_task_detail
 *
 * @author Huanyi
 * @date 2026-01-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = DocumentQcTaskDetail.class)
public class DocumentQcTaskDetailVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @ExcelProperty(value = "序号")
    private Long id;

    /**
     * 所属任务
     */
    @ExcelProperty(value = "所属任务")
    private Long taskId;

    /**
     * 质控文件
     */
    @ExcelProperty(value = "质控文件")
    private String documentName;
    private Long documentId;

    /**
     * 计划执行人
     */
    @ExcelProperty(value = "计划执行人")
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "executor")
    private String executorName;
    private Integer executorStatus;
    private Long executor;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态")
    private Integer status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String note;

    /**
     * 创建者
     */
    @ExcelProperty(value = "创建者")
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "createBy")
    private Long createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新者
     */
    @ExcelProperty(value = "更新者")
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "updateBy")
    private Long updateBy;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private Date updateTime;


}
