/* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the dreamlu.net developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ package org.springblade.modules.apply.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 lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.util.Date; /** * 考试报名实体类 * * @author zhongrj * @since 2021-07-17 */ @Data @TableName("sys_apply") public class Apply implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id",type = IdType.AUTO) private Long id; /** * 用户id */ @TableField("user_id") private Long userId; /** * 姓名 */ private String name; /** * 身高 */ private String height; /** * 体重 */ private String weight; /** * 年龄 */ private Integer age; /** * 电子头像,用于打印准考证 */ private String avatar; /** * 邮箱 */ private String email; /** * 手机 */ private String phone; /** * 性别 */ private Integer sex; /** * 身份证 */ @TableField("id_card_no") private String idCardNo; /** * 准考证号,通过审核后生成 */ @TableField("candidate_no") private String candidateNo; /** * 报名时间 */ @TableField("apply_time") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date applyTime; /** * 审核时间 */ @TableField("audit_time") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date auditTime; /** * 考试类型 */ @TableField("apply_exam_type") private Integer applyExamType; /** * 报名状态 */ @TableField("apply_status") private Integer applyStatus; /** * 审核失败原因 */ @TableField("fail_reason") private String failReason; /** * 考试id */ @TableField("exam_id") private Long examId; /** * 考试时间 */ @TableField("exam_time") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date examTime; /** * 审核状态 */ @TableField("examination_type") private String examinationType; /** * 审核明细 */ @TableField("examination_mx") private String examinationMx; /** * 报名编号 */ @TableField("apply_code") private String applyCode; /** * 是否考试 1:报名未考 2:已考 */ @TableField("is_exam") private Integer isExam; }