From 375c18a6d2713ff19b22093eec57315992d8333f Mon Sep 17 00:00:00 2001
From: Codex Assistant <codex@example.com>
Date: 星期四, 06 十一月 2025 13:33:52 +0800
Subject: [PATCH] 增加评审下载
---
backend/src/main/java/com/rongyichuang/player/dto/PromotableParticipantResponse.java | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 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 b28a85f..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,9 +28,22 @@
this.id = activityPlayer.getId();
this.playerName = activityPlayer.getPlayer() != null ? activityPlayer.getPlayer().getName() : "";
this.projectName = activityPlayer.getProjectName();
- // 浠嶶ser瀹炰綋鑾峰彇phone锛岃�屼笉鏄粠Player瀹炰綋锛圥layer.phone宸插簾寮冿級
- this.phone = activityPlayer.getPlayer() != null && activityPlayer.getPlayer().getUser() != null ?
- activityPlayer.getPlayer().getUser().getPhone() : "";
+ // 涓存椂浣跨敤搴熷純鐨凱layer.phone瀛楁锛屽悗缁渶瑕佷粠鏈嶅姟灞備紶鍏ser鐨刾hone
+ this.phone = activityPlayer.getPlayer() != null ? activityPlayer.getPlayer().getPhone() : "";
+ 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();
+ }
+
+ 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 ?
--
Gitblit v1.8.0