package cn.iocoder.yudao.module.knowledge.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 培训记录表
 *
 * @author admin
 * @since 1.0.0 2024-05-03
 */

@Data
@TableName("t_train_record")
public class TTrainRecord extends BaseDO{
	/**
	* 主键
	*/
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	* 培训班名称（内容）
	*/
	private String name;
	private String content;

	@TableField(exist = false)
	private String holdUnit;

	@TableField(exist = false)
	private String handAddress;

	/**
	* 培训id
	*/
	private Long trainId;

	/**
	* 开班时间
	*/
	private Date startTime;

	@TableField(exist = false)
	private Date startDate;

	@TableField(exist = false)
	private Date endDate;

	/**
	* 员工id
	*/
	private Long userId;

	//员工姓名
	private String userName;

	@Schema(description = "考试成绩)")
	@TableField(exist = false)
	private Double score;

	@TableField(exist = false)
	private Double allScore;

	@TableField(exist = false)
	private Double passScore;

	@Schema(description = "是否合格)")
	@TableField(exist = false)
	private String isPass;

	@Schema(description = "试卷id)")
	private Long paperInfoId;

	@Schema(description = "是否是交卷)")
	@TableField(exist = false)
	private String isHand;

	@TableField(exist = false)
	@JsonFormat(pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date createTimes;


	//补考次数
	@TableField(exist = false)
	private String retakeCount;

	//纠错次数
	@TableField(exist = false)
	private String correctCount;

	@TableField(exist = false)
	private String paperName;

}
