lrj
2 天以前 c61d4fe27c97d2ecc907756aa571a4ef14a7b9b6
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
package com.rongyichuang.activity.entity;
 
import jakarta.persistence.*;
 
@Entity
@Table(name = "t_activity_judge")
public class ActivityJudge {
 
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
 
    @Column(name = "activity_id", nullable = false)
    private Long activityId;
 
    @Column(name = "judge_id", nullable = false)
    private Long judgeId;
 
    @Column(name = "stage_id")
    private Long stageId; // 如果为null表示所有阶段,否则表示特定阶段
 
    // 构造函数
    public ActivityJudge() {}
 
    public ActivityJudge(Long activityId, Long judgeId, Long stageId) {
        this.activityId = activityId;
        this.judgeId = judgeId;
        this.stageId = stageId;
    }
 
    // Getter and Setter methods
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public Long getActivityId() {
        return activityId;
    }
 
    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }
 
    public Long getJudgeId() {
        return judgeId;
    }
 
    public void setJudgeId(Long judgeId) {
        this.judgeId = judgeId;
    }
 
    public Long getStageId() {
        return stageId;
    }
 
    public void setStageId(Long stageId) {
        this.stageId = stageId;
    }
 
 
}