From f04f35b562760afbac0c477357e2a29f77aec3b9 Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期四, 02 十月 2025 13:51:47 +0800
Subject: [PATCH] fix: 修复评审次数重复显示问题

---
 backend/src/main/resources/graphql/player.graphqls |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/backend/src/main/resources/graphql/player.graphqls b/backend/src/main/resources/graphql/player.graphqls
index 6246211..6a8029c 100644
--- a/backend/src/main/resources/graphql/player.graphqls
+++ b/backend/src/main/resources/graphql/player.graphqls
@@ -1,5 +1,7 @@
 extend type Query {
-  activityPlayerApplications(name: String, activityId: ID, state: Int, page: Int, size: Int): [ActivityPlayerApplicationResponse!]!
+  activityPlayerApplications(name: String, activityId: ID, state: Int, page: Int, size: Int): PlayerApplicationPageResponse!
+  # 鏂板锛氶」鐩瘎瀹′笓鐢ㄦ煡璇紝鍖呭惈鎵�鏈夐樁娈垫暟鎹紙鍖呮嫭澶嶈禌銆佸喅璧涳級
+  projectReviewApplications(name: String, activityId: ID, state: Int, page: Int, size: Int): ProjectReviewApplicationPageResponse!
   activityPlayerDetail(id: ID!): ActivityPlayerDetailResponse
   
   # 鎶ュ悕鐘舵�佹煡璇�
@@ -10,6 +12,12 @@
   currentJudgeRating(activityPlayerId: ID!): CurrentJudgeRatingResponse
   averageScoreForPlayer(activityPlayerId: ID!): Float
   currentJudgeInfo: CurrentJudgeInfoResponse
+  
+  # 鏉冮檺妫�鏌ユ煡璇�
+  isJudgeInActivity(stageId: ID!, judgeId: ID!): Boolean!
+  
+  # 鑾峰彇鎸囧畾璇勫鐨勮瘎鍒嗘槑缁�
+  judgeRatingDetail(activityPlayerId: ID!, judgeId: ID!): CurrentJudgeRatingResponse
   
   # 姣旇禌鏅嬬骇鐩稿叧鏌ヨ
   promotionCompetitions(name: String, page: Int, size: Int): [PromotionCompetitionResponse!]!
@@ -39,6 +47,8 @@
   phone: String
   applyTime: String!
   state: Int
+  ratingCount: Int
+  averageScore: Float
 }
 
 # 姣旇禌鎶ュ悕璇︽儏鍝嶅簲锛堢敤浜庤瘎鍒嗛〉闈級
@@ -53,6 +63,22 @@
   state: Int
   submissionFiles: [SubmissionMediaResponse!]!
   ratingForm: RatingFormResponse
+}
+
+# 鎶ュ悕瀹℃牳鍒嗛〉鍝嶅簲绫诲瀷
+type PlayerApplicationPageResponse {
+    content: [ActivityPlayerApplicationResponse!]!
+    totalElements: Int!
+    page: Int!
+    size: Int!
+}
+
+# 椤圭洰璇勫鍒嗛〉鍝嶅簲绫诲瀷
+type ProjectReviewApplicationPageResponse {
+    content: [ActivityPlayerApplicationResponse!]!
+    totalElements: Int!
+    page: Int!
+    size: Int!
 }
 
 # 瀛﹀憳淇℃伅鍝嶅簲
@@ -98,6 +124,7 @@
 # 璇勫垎鎻愪氦杈撳叆绫诲瀷
 input ActivityPlayerRatingInput {
   activityPlayerId: ID!
+  stageId: ID!
   ratings: [ActivityPlayerRatingItemInput!]!
   comment: String
 }

--
Gitblit v1.8.0