From 9f8395fab13ca4b230a0f7d62636e209745c91d4 Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期日, 28 九月 2025 14:16:18 +0800
Subject: [PATCH] feat: 完善注册流程的文件上传功能

---
 backend/src/main/java/com/rongyichuang/activity/entity/ActivityPlayerRating.java |   75 +++++++++++++++++++++++++++----------
 1 files changed, 55 insertions(+), 20 deletions(-)

diff --git a/backend/src/main/java/com/rongyichuang/activity/entity/ActivityPlayerRating.java b/backend/src/main/java/com/rongyichuang/activity/entity/ActivityPlayerRating.java
index 99b1d5d..44a9c24 100644
--- a/backend/src/main/java/com/rongyichuang/activity/entity/ActivityPlayerRating.java
+++ b/backend/src/main/java/com/rongyichuang/activity/entity/ActivityPlayerRating.java
@@ -2,6 +2,7 @@
 
 import com.rongyichuang.common.entity.BaseEntity;
 import jakarta.persistence.*;
+import org.hibernate.annotations.Where;
 
 import java.math.BigDecimal;
 
@@ -11,6 +12,7 @@
  */
 @Entity
 @Table(name = "t_activity_player_rating")
+@Where(clause = "state = 1")
 public class ActivityPlayerRating extends BaseEntity {
 
     /**
@@ -26,6 +28,12 @@
     private Long activityPlayerId;
 
     /**
+     * 闃舵ID
+     */
+    @Column(name = "stage_id", nullable = false)
+    private Long stageId;
+
+    /**
      * 閫夋墜ID
      */
     @Column(name = "player_id", nullable = false)
@@ -34,44 +42,51 @@
     /**
      * 璇勫ID
      */
-    @Column(name = "judge_id", nullable = false)
+    @Column(name = "judge_id")
     private Long judgeId;
 
     /**
      * 璇勫垎鏂规ID
      */
-    @Column(name = "rating_scheme_id", nullable = false)
+    @Column(name = "rating_scheme_id")
     private Long ratingSchemeId;
 
     /**
      * 鎬诲垎
      */
-    @Column(name = "total_score", precision = 10, scale = 2)
+    @Column(name = "total_score", precision = 19, scale = 2)
     private BigDecimal totalScore;
+
+    /**
+     * 鍙嶉淇℃伅
+     */
+    @Column(name = "feedback", columnDefinition = "TEXT")
+    private String feedback;
 
     /**
      * 璇勫垎鐘舵�侊細0-鏈瘎鍒嗭紝1-宸茶瘎鍒�
      */
-    @Column(name = "status", nullable = false)
-    private Integer status = 0;
+    @Column(name = "rating_state", nullable = false)
+    private Integer ratingState = 0;
 
     /**
-     * 璇勫垎澶囨敞
+     * 鐘舵�侊細1-姝e父锛�0-鍒犻櫎
      */
-    @Column(name = "remark", length = 500)
-    private String remark;
+    @Column(name = "state", nullable = false)
+    private Integer state = 1;
 
     // 鏋勯�犲嚱鏁�
     public ActivityPlayerRating() {}
 
-    public ActivityPlayerRating(Long activityId, Long activityPlayerId, Long playerId, 
+    public ActivityPlayerRating(Long activityId, Long activityPlayerId, Long stageId, Long playerId, 
                                Long judgeId, Long ratingSchemeId) {
         this.activityId = activityId;
         this.activityPlayerId = activityPlayerId;
+        this.stageId = stageId;
         this.playerId = playerId;
         this.judgeId = judgeId;
         this.ratingSchemeId = ratingSchemeId;
-        this.status = 0;
+        this.state = 0;
     }
 
     // Getter鍜孲etter鏂规硶
@@ -89,6 +104,14 @@
 
     public void setActivityPlayerId(Long activityPlayerId) {
         this.activityPlayerId = activityPlayerId;
+    }
+
+    public Long getStageId() {
+        return stageId;
+    }
+
+    public void setStageId(Long stageId) {
+        this.stageId = stageId;
     }
 
     public Long getPlayerId() {
@@ -123,21 +146,32 @@
         this.totalScore = totalScore;
     }
 
+    public String getFeedback() {
+        return feedback;
+    }
+
+    public void setFeedback(String feedback) {
+        this.feedback = feedback;
+    }
+
+    public Integer getState() {
+        return state;
+    }
+
+    public void setState(Integer state) {
+        this.state = state;
+    }
+
+    // 涓轰簡鍏煎鎬э紝淇濈暀status鐩稿叧鏂规硶
     public Integer getStatus() {
-        return status;
+        return state;
     }
 
     public void setStatus(Integer status) {
-        this.status = status;
+        this.state = status;
     }
 
-    public String getRemark() {
-        return remark;
-    }
 
-    public void setRemark(String remark) {
-        this.remark = remark;
-    }
 
     @Override
     public String toString() {
@@ -145,12 +179,13 @@
                 "id=" + getId() +
                 ", activityId=" + activityId +
                 ", activityPlayerId=" + activityPlayerId +
+                ", stageId=" + stageId +
                 ", playerId=" + playerId +
                 ", judgeId=" + judgeId +
                 ", ratingSchemeId=" + ratingSchemeId +
                 ", totalScore=" + totalScore +
-                ", status=" + status +
-                ", remark='" + remark + '\'' +
+                ", feedback='" + feedback + '\'' +
+                ", state=" + state +
                 '}';
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0