lrj
4 天以前 4fa9591629721797386fc11836e3a9deb69cd58c
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
package com.rongyichuang.activity.entity;
 
import com.rongyichuang.common.entity.BaseEntity;
import jakarta.persistence.*;
 
import java.math.BigDecimal;
 
/**
 * 活动选手评分实体类
 * 对应数据库表:t_activity_player_rating
 */
@Entity
@Table(name = "t_activity_player_rating")
public class ActivityPlayerRating extends BaseEntity {
 
    /**
     * 活动ID
     */
    @Column(name = "activity_id", nullable = false)
    private Long activityId;
 
    /**
     * 活动选手ID
     */
    @Column(name = "activity_player_id", nullable = false)
    private Long activityPlayerId;
 
    /**
     * 选手ID
     */
    @Column(name = "player_id", nullable = false)
    private Long playerId;
 
    /**
     * 评委ID
     */
    @Column(name = "judge_id", nullable = false)
    private Long judgeId;
 
    /**
     * 评分方案ID
     */
    @Column(name = "rating_scheme_id", nullable = false)
    private Long ratingSchemeId;
 
    /**
     * 总分
     */
    @Column(name = "total_score", precision = 10, scale = 2)
    private BigDecimal totalScore;
 
    /**
     * 评分状态:0-未评分,1-已评分
     */
    @Column(name = "status", nullable = false)
    private Integer status = 0;
 
    /**
     * 评分备注
     */
    @Column(name = "remark", length = 500)
    private String remark;
 
    // 构造函数
    public ActivityPlayerRating() {}
 
    public ActivityPlayerRating(Long activityId, Long activityPlayerId, Long playerId, 
                               Long judgeId, Long ratingSchemeId) {
        this.activityId = activityId;
        this.activityPlayerId = activityPlayerId;
        this.playerId = playerId;
        this.judgeId = judgeId;
        this.ratingSchemeId = ratingSchemeId;
        this.status = 0;
    }
 
    // Getter和Setter方法
    public Long getActivityId() {
        return activityId;
    }
 
    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }
 
    public Long getActivityPlayerId() {
        return activityPlayerId;
    }
 
    public void setActivityPlayerId(Long activityPlayerId) {
        this.activityPlayerId = activityPlayerId;
    }
 
    public Long getPlayerId() {
        return playerId;
    }
 
    public void setPlayerId(Long playerId) {
        this.playerId = playerId;
    }
 
    public Long getJudgeId() {
        return judgeId;
    }
 
    public void setJudgeId(Long judgeId) {
        this.judgeId = judgeId;
    }
 
    public Long getRatingSchemeId() {
        return ratingSchemeId;
    }
 
    public void setRatingSchemeId(Long ratingSchemeId) {
        this.ratingSchemeId = ratingSchemeId;
    }
 
    public BigDecimal getTotalScore() {
        return totalScore;
    }
 
    public void setTotalScore(BigDecimal totalScore) {
        this.totalScore = totalScore;
    }
 
    public Integer getStatus() {
        return status;
    }
 
    public void setStatus(Integer status) {
        this.status = status;
    }
 
    public String getRemark() {
        return remark;
    }
 
    public void setRemark(String remark) {
        this.remark = remark;
    }
 
    @Override
    public String toString() {
        return "ActivityPlayerRating{" +
                "id=" + getId() +
                ", activityId=" + activityId +
                ", activityPlayerId=" + activityPlayerId +
                ", playerId=" + playerId +
                ", judgeId=" + judgeId +
                ", ratingSchemeId=" + ratingSchemeId +
                ", totalScore=" + totalScore +
                ", status=" + status +
                ", remark='" + remark + '\'' +
                '}';
    }
}