package org.jeecg.modules.database.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @Description: 试验评定结果
 * @Author: jeecg-boot
 * @Date: 2025-06-16
 * @Version: V1.0
 */
@Data
@TableName("experiment_review")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "试验评定结果")
public class ExperimentReview implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "id")
    private String id;
    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "创建日期")
    private Date   createTime;
    /**
     * 更新人
     */
    @Schema(description = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "更新日期")
    private Date   updateTime;
    /**
     * 所属部门
     */
    @Schema(description = "所属部门")
    private String sysOrgCode;
    /**
     * 试验ID
     */
    @Excel(name = "试验ID", width = 15)
    @Schema(description = "试验ID")
    private String experimentId;
    /**
     * 样品ID
     */
    @Excel(name = "样品ID", width = 15)
    @Schema(description = "样品ID")
    private String sampleId;
    /**
     * 试验流程标准
     */
    @Excel(name = "试验流程标准", width = 15)
    @Schema(description = "试验流程标准", allowableValues = {"GJB548C", "ESCC229000", "ESCC22500", "QJ10004"})
    private String processType;

    /**
     * 是否需要退火
     */
    @Excel(name = "是否需要退火", width = 15)
    @Schema(description = "是否需要退火", allowableValues = {"Y", "N"})
    private String needAnneal;

    /**
     * 是否需要辐照
     */
    @Excel(name = "是否需要辐照", width = 15)
    @Schema(description = "是否需要辐照", allowableValues = {"Y", "N"})
    private String needRadiation;

    /**
     * 是否需要老练
     */
    @Excel(name = "是否需要老练", width = 15)
    @Schema(description = "是否需要老练", allowableValues = {"Y", "N"})
    private String needBurnin;

    /**
     * 评定结果
     */
    @Excel(name = "评定结果", width = 15)
    @Schema(description = "评定结果")
    private String result;
    /**
     * 评定状态
     */
    @Excel(name = "评定状态", width = 15)
    @Schema(description = "评定状态")
    private String reviewStatus;

    @TableField(exist = false)
    private List<ExperimentReviewRule> matchedRuleList;

}
