package com.gxwebsoft.ai.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 审计取证单表
 *
 * @author yc
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "AuditEvidence对象", description = "审计取证单表")
@TableName("audit_evidence")
public class AuditEvidence implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "案件编号")
    private String caseIndex;

    @Schema(description = "项目编号")
    private Integer projectId;

    @Schema(description = "项目名称")
    private String projectName;

    @Schema(description = "内容类型，1到11")
    private Integer contentType;

    @Schema(description = "被审计单位或个人")
    private String auditedTarget;

    @Schema(description = "审计事项类型，对应AuditMatterTypeEnum")
    private String auditMatterType;

    @Schema(description = "审计事项描述")
    private String auditMatter;

    @Schema(description = "核心问题标题")
    private String summaryTitle;

    @Schema(description = "客观的审计核查事实记录")
    private String auditRecord;

    @Schema(description = "审计发现的具体问题")
    private String auditFinding;

    @Schema(description = "定性依据")
    private String evidenceBasis;

    @Schema(description = "拟采取的处理措施")
    private String handling;

    @Schema(description = "改进或整改建议")
    private String suggestion;

    @Schema(description = "随附的证明材料")
    private String attachment;

    @Schema(description = "审计人员姓名")
    private String auditors;

    @Schema(description = "编制日期")
    private String compileDate;

    @Schema(description = "证据提供单位或个人意见")
    private String providerOpinion;

    @Schema(description = "证据提供日期")
    private String providerDate;

    @Schema(description = "附件页数")
    private Integer attachmentPages;

    @Schema(description = "反馈期限")
    private String feedbackDeadline;

    @Schema(description = "取证单数据")
    private String data;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "状态, 0正常, 1冻结")
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private Boolean success;
}