wenminjie
2026-08-07 d9265b935272e772064a5d8953085f1dbd1ab811
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
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; }
}