From cfa7d0a90e7da9b52606ab8fca364fa5bddddcd4 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期四, 28 八月 2025 20:14:15 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/2.0' into 2.0

---
 cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java b/cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java
index 44e8560..fbdb7c1 100644
--- a/cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java
+++ b/cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java
@@ -1240,20 +1240,20 @@
     public List<WorldCupUserListVo> userDetailsOfSearch(@RequestBody UserDetailsOfSearch  search){
         // 已报名的用户
         List<WorldCupPaymentParticipant> list = worldCupPaymentParticipantService.list(new LambdaQueryWrapper<WorldCupPaymentParticipant>().eq(WorldCupPaymentParticipant::getWorldCupId, search.getId())
-                .eq(WorldCupPaymentParticipant::getAlreadyEntered, 0));
+                );
         ArrayList<WorldCupUserListVo> worldCupUserListVos = new ArrayList<>();
         if(list.size()>0){
-            List<Integer> collect = list.stream().map(WorldCupPaymentParticipant::getAppUserId).collect(Collectors.toList());
+            List<Long> collect = list.stream().map(WorldCupPaymentParticipant::getParticipantId).collect(Collectors.toList());
             search.setUseIds(collect);
-            List<AppUser> appUsers = appUserClient.queryAppUserByIds(search);
+            List<TStudent> appUsers = appUserClient.queryAppUserByIds(search);
 
-            for (AppUser appUser : appUsers) {
+            for (TStudent appUser : appUsers) {
                 WorldCupUserListVo worldCupUserListVo = new WorldCupUserListVo();
-                WorldCupPaymentParticipant worldCupPaymentParticipant = list.stream().filter(e -> e.getAppUserId().equals(appUser.getId())).findFirst().orElse(null);
+                WorldCupPaymentParticipant worldCupPaymentParticipant = list.stream().filter(e -> e.getParticipantId().toString().equals(appUser.getId().toString())).findFirst().orElse(null);
                 if(worldCupPaymentParticipant!=null){
-                    worldCupUserListVo.setId(worldCupPaymentParticipant.getId());
+                    worldCupUserListVo.setId(worldCupPaymentParticipant.getId().toString());
                     worldCupUserListVo.setName(appUser.getName());
-                    worldCupUserListVo.setSex(appUser.getGender() !=null && appUser.getGender()==2?"女":"男");
+                    worldCupUserListVo.setSex(appUser.getSex() !=null && appUser.getSex()==2?"女":"男");
                     worldCupUserListVo.setPhone(appUser.getPhone());
                     worldCupUserListVo.setIdCard(appUser.getIdCard());
                     // 当前日期和生日计算年龄
@@ -1297,7 +1297,7 @@
         String code = UUIDUtil.getTimeStr() + UUIDUtil.getNumberRandom(3);
         ArrayList<WorldCupCompetitor> worldCupCompetitors = new ArrayList<>(red.length + blue.length);
         for (String s : blue) {
-            WorldCupPaymentParticipant worldCupPaymentParticipant = list1.stream().filter(e -> e.getId().equals(s)).findFirst().orElse(null);
+            WorldCupPaymentParticipant worldCupPaymentParticipant = list1.stream().filter(e -> e.getId().toString().equals(s)).findFirst().orElse(null);
             if(worldCupPaymentParticipant!=null){
                 WorldCupCompetitor worldCupCompetitor =new WorldCupCompetitor();
                 worldCupCompetitor.setCode(code);
@@ -1308,6 +1308,7 @@
                 worldCupCompetitor.setParticipant(1);
                 worldCupCompetitor.setStartTime(startTime);
                 worldCupCompetitor.setEndTime(endTime);
+                worldCupCompetitor.setOurScore(blueScore);
                 if(blueScore>redScore){
                     worldCupCompetitor.setMatchResult(1);
                     worldCupCompetitor.setWinIntegral(worldCup.getWinIntegral());
@@ -1353,7 +1354,7 @@
         }
 
         for (String s : red) {
-            WorldCupPaymentParticipant worldCupPaymentParticipant = list1.stream().filter(e -> e.getId().equals(s)).findFirst().orElse(null);
+            WorldCupPaymentParticipant worldCupPaymentParticipant = list1.stream().filter(e -> e.getId().toString().equals(s)).findFirst().orElse(null);
             if(worldCupPaymentParticipant!=null){
                 WorldCupCompetitor worldCupCompetitor =new WorldCupCompetitor();
                 worldCupCompetitor.setCode(code);
@@ -1361,9 +1362,10 @@
                 worldCupCompetitor.setParticipantType(worldCupPaymentParticipant.getParticipantType());
                 worldCupCompetitor.setAppUserId(worldCupPaymentParticipant.getAppUserId());
                 worldCupCompetitor.setParticipantId(worldCupPaymentParticipant.getParticipantId());
-                worldCupCompetitor.setParticipant(1);
+                worldCupCompetitor.setParticipant(2);
                 worldCupCompetitor.setStartTime(startTime);
                 worldCupCompetitor.setEndTime(endTime);
+                worldCupCompetitor.setOurScore(redScore);
                 if(redScore>blueScore){
                     worldCupCompetitor.setMatchResult(1);
                     worldCupCompetitor.setWinIntegral(worldCup.getWinIntegral());

--
Gitblit v1.7.1