From 58d9f460b2f8c34430285115e2557d18333c5cab Mon Sep 17 00:00:00 2001 From: Codex Assistant <codex@example.com> Date: 星期三, 08 十月 2025 14:16:55 +0800 Subject: [PATCH] feat: 修复Player实体phone字段数据冗余问题并优化小程序报名逻辑 --- backend/src/main/java/com/rongyichuang/player/dto/PromotableParticipantResponse.java | 4 +++- 1 files changed, 3 insertions(+), 1 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..b28a85f 100644 --- a/backend/src/main/java/com/rongyichuang/player/dto/PromotableParticipantResponse.java +++ b/backend/src/main/java/com/rongyichuang/player/dto/PromotableParticipantResponse.java @@ -28,7 +28,9 @@ this.id = activityPlayer.getId(); this.playerName = activityPlayer.getPlayer() != null ? activityPlayer.getPlayer().getName() : ""; this.projectName = activityPlayer.getProjectName(); - this.phone = activityPlayer.getPlayer() != null ? activityPlayer.getPlayer().getPhone() : ""; + // 浠嶶ser瀹炰綋鑾峰彇phone锛岃�屼笉鏄粠Player瀹炰綋锛圥layer.phone宸插簾寮冿級 + this.phone = activityPlayer.getPlayer() != null && activityPlayer.getPlayer().getUser() != null ? + activityPlayer.getPlayer().getUser().getPhone() : ""; this.averageScore = averageScore; this.ratingCount = ratingCount != null ? ratingCount : 0; this.applyTime = activityPlayer.getCreateTime() != null ? -- Gitblit v1.8.0