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;

/**
 * @Description: 当期数据库记录
 * @Author: jeecg-boot
 * @Date: 2025-02-24
 * @Version: V1.0
 */
@Data
@TableName("local_database")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "当期数据库记录")
public class LocalDatabase implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;

    @TableField(exist = false)
    private String dataType="local";
    /**
     * 创建人
     */
    @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;

    @Schema(description = "试验ID")
    private String experimentId;

    @Excel(name = "试验编号", width = 15)
    @Schema(description = "试验编号")
    private String experimentNo;

    /**
     * 类型
     */
    @Excel(name = "类型", width = 15)
    @Schema(description = "类型")
    private String  type;
    /**
     * 名称
     */
    @Excel(name = "名称", width = 15)
    @Schema(description = "名称")
    private String  name;
    /**
     * 委托方
     */
    @Excel(name = "委托方", width = 15)
    @Schema(description = "委托方")
    private String  clientName;
    /**
     * 试验开始时间
     */
    @Excel(name = "试验开始时间", width = 15)
    @Schema(description = "试验开始时间")
    private String  startDate;
    /**
     * 试验结束时间
     */
    @Excel(name = "试验结束时间", width = 15)
    @Schema(description = "试验结束时间")
    private String  endDate;
    /**
     * 数据来源
     */
    @Excel(name = "数据来源", width = 15)
    @Schema(description = "数据来源")
    private String  dataSource;
    /**
     * 试验人员
     */
    @Excel(name = "试验人员", width = 15)
    @Schema(description = "试验人员")
    private String  experimentUser;
    /**
     * 西核院统计
     */
    @Excel(name = "西核院统计", width = 15)
    @Schema(description = "西核院统计")
    private Integer totalCountXhy;
    /**
     * 理化所统计
     */
    @Excel(name = "理化所统计", width = 15)
    @Schema(description = "理化所统计")
    private Integer totalCountLhs;
    /**
     * 状态
     */
    @Excel(name = "状态", width = 15)
    @Schema(description = "状态")
    private String  status;

    /**
     * 状态
     */
    @Excel(name = "样品型号", width = 15)
    @Schema(description = "样品型号")
    private String  sampleModel;

}
