package com.talentcard.server.entity; import java.time.LocalDateTime; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; @TableName("dependent_card_apply") public class DependentCardApply { public static final int STATUS_PENDING_REVIEW = 0; public static final int STATUS_APPROVED = 1; public static final int STATUS_REJECTED = 2; public static final int STATUS_CANCELLED = 3; @TableId(type = IdType.AUTO) private Long id; private String applyNo; private Long talentId; private Long talentCardId; private String talentName; private String talentMobile; private String talentCardNo; private String cardLevel; @TableField(exist = false) private Integer isFamilyCardEnabled; @TableField(exist = false) private Integer familyCardLimit; private String dependentName; private String dependentMobile; private String dependentIdCardNo; private String relation; private String proofFiles; private String applyType; private LocalDateTime applyTime; private Integer status; private Long auditBy; private LocalDateTime auditTime; private String auditRemark; private LocalDateTime createdAt; private LocalDateTime updatedAt; @TableLogic private Integer deleted; public DependentCardApply() { } public DependentCardApply( String applyNo, Long talentId, Long talentCardId, String talentName, String talentMobile, String talentCardNo, String cardLevel, String dependentName, String dependentMobile, String dependentIdCardNo, String relation ) { LocalDateTime now = LocalDateTime.now(); this.applyNo = applyNo; this.talentId = talentId; this.talentCardId = talentCardId; this.talentName = talentName; this.talentMobile = talentMobile; this.talentCardNo = talentCardNo; this.cardLevel = cardLevel; this.dependentName = dependentName; this.dependentMobile = dependentMobile; this.dependentIdCardNo = dependentIdCardNo; this.relation = relation; this.applyType = "FAMILY"; this.applyTime = now; this.status = STATUS_PENDING_REVIEW; this.createdAt = now; this.updatedAt = now; this.deleted = 0; } public Long getId() { return id; } public String getApplyNo() { return applyNo; } public Long getTalentId() { return talentId; } public Long getTalentCardId() { return talentCardId; } public String getTalentName() { return talentName; } public String getTalentMobile() { return talentMobile; } public String getTalentCardNo() { return talentCardNo; } public String getCardLevel() { return cardLevel; } public Integer getIsFamilyCardEnabled() { return isFamilyCardEnabled; } public Integer getFamilyCardLimit() { return familyCardLimit; } public String getDependentName() { return dependentName; } public String getDependentMobile() { return dependentMobile; } public String getDependentIdCardNo() { return dependentIdCardNo; } public String getRelation() { return relation; } public String getProofFiles() { return proofFiles; } public String getApplyType() { return applyType; } public LocalDateTime getApplyTime() { return applyTime; } public Integer getStatus() { return status; } public Long getAuditBy() { return auditBy; } public LocalDateTime getAuditTime() { return auditTime; } public String getAuditRemark() { return auditRemark; } public LocalDateTime getCreatedAt() { return createdAt; } public LocalDateTime getUpdatedAt() { return updatedAt; } public Integer getDeleted() { return deleted; } }