package org.jeecg.modules.database.entity;

import cn.hutool.core.bean.BeanUtil;
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-23
 * @Version: V1.0
 */
@Data
@TableName("experiment_anneal_process")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "退火过程")
public class ExperimentAnnealProcess 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;
    /**
     * 辐照标准
     */
    @Schema(description = "辐照标准")
    private String radiationStandard;
    /**
     * 退火温度
     */
    @Schema(description = "退火温度")
    private String annealTemperature;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String comment;
    /**
     * 异常记录
     */
    @Schema(description = "异常记录")
    private String exceptionRecord;
    /**
     * 辐照详情（json存储）
     */
    @Schema(description = "辐照详情（json存储）")
    private String radiationDetail;
    /**
     * 试验ID
     */
    @Schema(description = "试验ID")
    private String experimentId;
    /**
     * 退火开始时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "退火开始时间")
    private Date   annealStartTime;
    /**
     * 退火结束时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "退火结束时间")
    private Date   annealEndTime;
    /**
     * 偏置条件
     */
    @Schema(description = "偏置条件")
    private String deviationCondition;
    /**
     * 加偏设备
     */
    @Schema(description = "加偏设备")
    private String deviationEquipment;

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

    @Schema(description = "偏置条件")
    @TableField(exist = false)
    private List<ExperimentDeviationCondition> deviationConditionList;

    @Schema(description = "加偏设备")
    @TableField(exist = false)
    private List<ExperimentDeviationEquipment> deviationEquipmentList;

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


}
