From c8dffd157cd8b62023b26e62a0b92c152d959423 Mon Sep 17 00:00:00 2001
From: Codex Assistant <codex@example.com>
Date: 星期三, 08 十月 2025 21:19:28 +0800
Subject: [PATCH] build(backend): switch to thin-jar layout (split libs into target/lib); chore: remove test-* files; misc updates

---
 backend/src/main/java/com/rongyichuang/player/dto/PromotableParticipantResponse.java |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/backend/src/main/java/com/rongyichuang/player/dto/PromotableParticipantResponse.java b/backend/src/main/java/com/rongyichuang/player/dto/PromotableParticipantResponse.java
index e59d920..5913885 100644
--- a/backend/src/main/java/com/rongyichuang/player/dto/PromotableParticipantResponse.java
+++ b/backend/src/main/java/com/rongyichuang/player/dto/PromotableParticipantResponse.java
@@ -28,6 +28,7 @@
         this.id = activityPlayer.getId();
         this.playerName = activityPlayer.getPlayer() != null ? activityPlayer.getPlayer().getName() : "";
         this.projectName = activityPlayer.getProjectName();
+        // 涓存椂浣跨敤搴熷純鐨凱layer.phone瀛楁锛屽悗缁渶瑕佷粠鏈嶅姟灞備紶鍏ser鐨刾hone
         this.phone = activityPlayer.getPlayer() != null ? activityPlayer.getPlayer().getPhone() : "";
         this.averageScore = averageScore;
         this.ratingCount = ratingCount != null ? ratingCount : 0;
@@ -37,6 +38,20 @@
         this.playerId = activityPlayer.getPlayerId();
     }
     
+    public PromotableParticipantResponse(ActivityPlayer activityPlayer, BigDecimal averageScore, Integer ratingCount, String userPhone) {
+        this.id = activityPlayer.getId();
+        this.playerName = activityPlayer.getPlayer() != null ? activityPlayer.getPlayer().getName() : "";
+        this.projectName = activityPlayer.getProjectName();
+        // 浠庡弬鏁拌幏鍙朥ser鐨刾hone
+        this.phone = userPhone != null ? userPhone : "";
+        this.averageScore = averageScore;
+        this.ratingCount = ratingCount != null ? ratingCount : 0;
+        this.applyTime = activityPlayer.getCreateTime() != null ? 
+            activityPlayer.getCreateTime().format(FORMATTER) : null;
+        this.state = activityPlayer.getState();
+        this.playerId = activityPlayer.getPlayerId();
+    }
+    
     // Getters and Setters
     
     public Long getId() {

--
Gitblit v1.8.0