package com.gkhy.exam.system.domain; 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.JsonInclude; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import java.io.Serializable; import java.time.LocalDateTime; import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL; /** *

* 线下教育登记表 *

* * @author kzy * @since 2024-06-24 16:16:33 */ @Getter @Setter @TableName("ex_exam_record") @ApiModel(value = "ExExamRecord对象", description = "线下教育登记表") @JsonInclude(NON_NULL) public class ExExamRecord implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("主键") @TableId(value = "id", type = IdType.AUTO) private Long id; @ApiModelProperty("公司id") @TableField("company_id") private Long companyId; @NotNull(message = "学员id不能为空") @ApiModelProperty(value = "学员id",required = true) @TableField("student_id") private Long studentId; @NotBlank(message = "计划名称不能为空") @ApiModelProperty(value = "计划名称",required = true) @TableField("plan_name") private String planName; @NotBlank(message = "课程名称不能为空") @ApiModelProperty(value = "课程名称",required = true) @TableField("course_name") private String courseName; @NotNull(message = "培训等级不能为空") @ApiModelProperty(value = "培训等级(1公司级 2部门级 3车间级 默认1)",required = true) @TableField("level") private Integer level; @NotNull(message = "要求课时不能为空") @ApiModelProperty(value = "要求课时(分)",required = true) @TableField("period") private Integer period; @NotNull(message = "实际课时不能为空") @ApiModelProperty(value = "实际课时(分)",required = true) @TableField("actual_period") private Integer actualPeriod; @NotNull(message = "考试成绩不能为空") @ApiModelProperty("考试成绩") @TableField("score") private Integer score; @NotNull(message = "是否合格不能为空") @ApiModelProperty("是否合格,0不合格 1合格 默认0") @TableField("passed") private Integer passed; @ApiModelProperty("创建时间") @TableField("create_time") private LocalDateTime createTime; @ApiModelProperty("创建人") @TableField("create_by") private String createBy; @ApiModelProperty("更新时间") @TableField("update_time") private LocalDateTime updateTime; @ApiModelProperty("更新人") @TableField("update_by") private String updateBy; @ApiModelProperty("备注") @TableField("remark") private String remark; @ApiModelProperty("公司名称") @TableField(exist = false) private String companyName; @ApiModelProperty("学生对象") @TableField(exist = false) private ExStudent student; }