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: 2024-10-22
 * @Version: V1.0
 */
@Data
@TableName("experiment_test_process")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "测试过程")
public class ExperimentTestProcess implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    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;
    /**
     * 辐照源
     */
    @Excel(name = " 辐照源", width = 15)
    @Schema(description = " 辐照源")
    private String radiationSource;
    /**
     * 计量率
     */
    @Excel(name = "计量率", width = 15)
    @Schema(description = "计量率")
    private String measurementRate;
    /**
     * 辐照标准
     */
    @Excel(name = "辐照标准", width = 15)
    @Schema(description = "辐照标准")
    private String radiationStandard;
    /**
     * 环境温度
     */
    @Excel(name = "环境温度", width = 15)
    @Schema(description = "环境温度")
    private String environmentalTemperature;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @Schema(description = "备注")
    private String comment;
    /**
     * 异常记录
     */
    @Excel(name = "异常记录", width = 15)
    @Schema(description = "异常记录")
    private String exceptionRecord;
    /**
     * 辐照详情（json存储）
     */
    @Excel(name = "辐照详情（json存储）", width = 15)
    @Schema(description = "辐照详情（json存储）")
    private String radiationDetail;
    /**
     * 试验ID
     */
    @Excel(name = "试验ID", width = 15)
    @Schema(description = "试验ID")
    private String experimentId;
    /**
     * 测试开始时间
     */
    @Excel(name = "测试开始时间", width = 20, format = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "测试开始时间")
    private Date   testStartTime;
    /**
     * 测试结束时间
     */
    @Excel(name = "测试结束时间", width = 20, format = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "测试结束时间")
    private Date   testEndTime;
    /**
     * 环境湿度
     */
    @Excel(name = "环境湿度", width = 15)
    @Schema(description = "环境湿度")
    private String environmentalHumidity;
    /**
     * 测试参数(json 大字段)
     */
    @Excel(name = "测试参数", width = 15)
    @Schema(description = "测试参数(json 大字段)")
    private String testParameters;
    /**
     * 测试设备(json 大字段)
     */
    @Excel(name = "测试设备", width = 15)
    @Schema(description = "测试设备(json 大字段)")
    private String testEquipment;
    /**
     * 测试计量点
     */
    @Excel(name = "测试计量点", width = 15)
    @Schema(description = "测试计量点")
    private String testMeteringPoint;
    /**
     * 测试注量点
     */
    @Excel(name = "测试注量点", width = 15)
    @Schema(description = "测试注量点")
    private String testFluencePoint;
    /**
     * 退火时长
     */
    @Excel(name = "退火时长", width = 15)
    @Schema(description = "退火时长")
    private String annealingDuration;
    /**
     * 测试数据(json 大字段)
     */
    @Excel(name = "测试数据", width = 15)
    @Schema(description = "测试数据(json 大字段)")
    private String testData;
    /**
     * 测试结果
     */
    @Excel(name = "测试结果", width = 15)
    @Schema(description = "测试结果")
    private String testResult;

    @Schema(description = "样品信息")
    private String sampleInfo;

    @Schema(description = "样品信息")
    @TableField(exist = false)
    private List<ExperimentSampleInfo> sampleInfoList;

    @Excel(name = "测试标准", width = 15)
    @Schema(description = "测试标准")
    private String testStandardsId;

    @TableField(exist = false)
    private TestStandards testStandards;

}
