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-15
 * @Version: V1.0
 */
@Data
@TableName("experiment_radiation_process")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "辐照过程")
public class ExperimentRadiationProcess 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 radiationStartTime;
    /**
     * 辐照结束时间
     */
    @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 radiationEndTime;

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

    @TableField(exist = false)
    private List<ExperimentSampleInfo> sampleInfoList;

}
