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.jeecg.modules.database.dto.ExperimentRatingUserDTO;
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-11-16
 * @Version: V1.0
 */
@Data
@TableName("experiment_rating")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "试验评分")
public class ExperimentRating 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;
    /**
     * 实验ID
     */
    @Excel(name = "实验ID", width = 15)
    @Schema(description = "实验ID")
    private String experimentId;
    /**
     * 评分人
     */
    @Excel(name = "评分人", width = 15)
    @Schema(description = "评分人")
    private String rateUserId;
    /**
     * 总分数
     */
    @Excel(name = "总分数", width = 15)
    @Schema(description = "总分数")
    private String totalScore;
    /**
     * 基础分
     */
    @Excel(name = "基础分", width = 15)
    @Schema(description = "基础分")
    private String baseScore;
    /**
     * 完成分
     */
    @Excel(name = "完成分", width = 15)
    @Schema(description = "完成分")
    private String completionScore;
    /**
     * 难度分
     */
    @Excel(name = "难度分", width = 15)
    @Schema(description = "难度分")
    private String difficultyScore;
    /**
     * 管理支撑分
     */
    @Excel(name = "管理支撑分", width = 15)
    @Schema(description = "管理支撑分")
    private String managementScore;

    @TableField(exist = false)
    private String                        experimentName;
    @TableField(exist = false)
    private String                        experimentNo;
    @TableField(exist = false)
    private String                        rateUserName;
    @TableField(exist = false)
    @Schema(description = "评分人列表")
    private List<ExperimentRatingUserDTO> rateUserList;
}
