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/CompetitionParticipantResponse.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/backend/src/main/java/com/rongyichuang/player/dto/CompetitionParticipantResponse.java b/backend/src/main/java/com/rongyichuang/player/dto/CompetitionParticipantResponse.java index 741e1f7..6797fa7 100644 --- a/backend/src/main/java/com/rongyichuang/player/dto/CompetitionParticipantResponse.java +++ b/backend/src/main/java/com/rongyichuang/player/dto/CompetitionParticipantResponse.java @@ -27,7 +27,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 = activityPlayer.getTotalScore(); this.ratingCount = 0; // 闇�瑕佷粠璇勫垎琛ㄤ腑缁熻 this.applyTime = activityPlayer.getCreateTime() != null ? -- Gitblit v1.8.0