package com.gxwebsoft.bszx.entity; import com.baomidou.mybatisplus.annotation.IdType; import java.time.LocalDate; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import java.io.Serializable; import java.util.Date; import com.gxwebsoft.cms.entity.CmsArticle; import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.EqualsAndHashCode; /** * 百色中学-报名记录 * * @author 科技小王子 * @since 2025-03-06 22:50:25 */ @Data @EqualsAndHashCode(callSuper = false) @Schema(name = "BszxBm对象", description = "百色中学-报名记录") public class BszxBm implements Serializable { private static final long serialVersionUID = 1L; @Schema(description = "自增ID") @TableId(value = "id", type = IdType.AUTO) private Integer id; @Schema(description = "姓名") private String name; @Schema(description = "类型 0校友 1单位 2爱心人士") private Integer type; @Schema(description = "性别 1男 2女") private String sex; @Schema(description = "性别名称") @TableField(exist = false) private String sexName; @Schema(description = "手机号码") private String phone; @Schema(description = "手机号码") @TableField(exist = false) private String mobile; @Schema(description = "班级ID") private Integer classId; @Schema(description = "班级") private String className; @Schema(description = "年级") private String gradeName; @Schema(description = "分部ID") private Integer branchId; @Schema(description = "分部名称") @TableField(exist = false) private String branchName; @Schema(description = "居住地址") private String address; @Schema(description = "工作单位") private String workUnit; @Schema(description = "职务") private String position; @Schema(description = "是否能到场") private String present; @Schema(description = "年龄") private Integer age; @Schema(description = "人数") private Integer number; @Schema(description = "额外信息") private String extra; @Schema(description = "生成的邀请函存放路径") private String certificate; @Schema(description = "预定日期") private LocalDate dateTime; @Schema(description = "表单数据") private String formData; @Schema(description = "表单ID") private Integer formId; @Schema(description = "活动名称") @TableField(exist = false) private String formName; @Schema(description = "用户ID") private Integer userId; @Schema(description = "昵称") @TableField(exist = false) private String nickname; @Schema(description = "头像") @TableField(exist = false) private String avatar; @Schema(description = "排序(数字越小越靠前)") private Integer sortNumber; @Schema(description = "备注") private String comments; @Schema(description = "状态, 0正常, 1冻结") private Integer status; @Schema(description = "是否删除, 0否, 1是") @TableLogic private Integer deleted; @Schema(description = "租户id") private Integer tenantId; @Schema(description = "创建时间") private Date createTime; @Schema(description = "文章对象") @TableField(exist = false) private CmsArticle article; public String getSexName() { if (this.sex == null) { return ""; } return this.sex.equals("1") ? "男" : "女"; } }