package com.ruoyi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.GnhzBaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * @program: RuoYi-Vue-master
 * @description: 培训计划
 * @author: niujie
 * @create: 2023-08-15 15:11
 **/
@Data
@TableName("training_plan")
public class TrainingPlan extends GnhzBaseEntity {
    //id
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

    //名称
    @TableField("training_plan_name")
    private String trainingPlanName;

    //学习开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("learning_start_time")
    private Date learningStartTime;

    //学习结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("learning_end_time")
    private Date learningEndTime;

    //计划类型：1、文件，2、课程
    @TableField("plan_type")
    private String planType;

    //封面图片
    @TableField("cover_photo")
    private String coverPhoto;

    //简介
    @TableField("brief_introduction")
    private String briefIntroduction;

    //是否需要考试 1、是，2、否
    @TableField("is_examination")
    private String isExamination;

    //考试图数量
    @TableField("questions_number")
    private String questionsNumber;

    //证书ID
    @TableField("certificate_id")
    private String certificateId;

    //重考次数
    @TableField("retakes_number")
    private String retakesNumber;

    //状态1、待审核，2、审核通过，3、审核不通过
    @TableField("lesson_schedule_state")
    private String lessonScheduleState;

    //审核人
    @TableField("approve_by")
    private Long approveBy;

    //审核时间
    @TableField("approve_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date approveTime;

    //审核意见
    @TableField("approve_opinion")
    private String approveOpinion;

    //培训计划分类表id
    @TableField("training_plan_classification_id")
    private String trainingPlanClassificationId;

    //备注
    @TableField("remark_info")
    private String remarkInfo;

    //审核人账号
    @TableField(exist = false)
    private String approveName;

    //审核人昵称
    @TableField(exist = false)
    private String approveNickName;
}
