Commit b4e9dede by Lem

球队详情bug修改

parent 04a18616
...@@ -481,11 +481,11 @@ public class MatchServiceImpl implements MatchService { ...@@ -481,11 +481,11 @@ public class MatchServiceImpl implements MatchService {
.builder() .builder()
.country(countryMap.getOrDefault(team.getCountry(), null)) .country(countryMap.getOrDefault(team.getCountry(), null))
.id(team.getId()) .id(team.getId())
.sportsName(sports.getCompetitionShortName()) .sportsName(sports == null ? "未知" : sports.getCompetitionShortName())
.teamIcon(team.getTeamIcon()) .teamIcon(team.getTeamIcon())
.teamName(team.getTeamName()) .teamName(team.getTeamName())
.teamNameEn(team.getTeamNameEn()) .teamNameEn(team.getTeamNameEn())
.teamType(sports.getTeamType().equals("club") ? "俱乐部" : "国家队") .teamType(sports == null ? "未知" : sports.getTeamType().equals("club") ? "俱乐部" : "国家队")
.build()) .build())
.teamPlayers(teamPlayers.stream().map(b -> { .teamPlayers(teamPlayers.stream().map(b -> {
Integer market = b.getMarketValue(); Integer market = b.getMarketValue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment