From 7ba080d35812e6db7bd5aa8f88161c02653eb6c1 Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期三, 24 九月 2025 22:42:35 +0800
Subject: [PATCH] feat: 优化员工和评委编辑功能的密码重置逻辑

---
 backend/src/main/java/com/rongyichuang/activity/entity/ActivityPlayerRating.java |   71 +++++++++++++++++++++++++----------
 1 files changed, 50 insertions(+), 21 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..1abc8c5 100644
--- a/backend/src/main/java/com/rongyichuang/activity/entity/ActivityPlayerRating.java
+++ b/backend/src/main/java/com/rongyichuang/activity/entity/ActivityPlayerRating.java
@@ -26,6 +26,12 @@
     private Long activityPlayerId;
 
     /**
+     * 闃舵ID
+     */
+    @Column(name = "stage_id", nullable = false)
+    private Long stageId;
+
+    /**
      * 閫夋墜ID
      */
     @Column(name = "player_id", nullable = false)
@@ -34,44 +40,47 @@
     /**
      * 璇勫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;
 
     /**
-     * 璇勫垎鐘舵�侊細0-鏈瘎鍒嗭紝1-宸茶瘎鍒�
+     * 鍙嶉淇℃伅
      */
-    @Column(name = "status", nullable = false)
-    private Integer status = 0;
+    @Column(name = "feedback", columnDefinition = "TEXT")
+    private String feedback;
 
     /**
-     * 璇勫垎澶囨敞
+     * 鐘舵�侊細0-鏈瘎鍒嗭紝1-宸茶瘎鍒�
      */
-    @Column(name = "remark", length = 500)
-    private String remark;
+    @Column(name = "state", nullable = false)
+    private Integer state = 0;
+
+
 
     // 鏋勯�犲嚱鏁�
     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 +98,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 +140,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 +173,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