|
|
@@ -62,6 +62,7 @@ public class UserServiceImpl implements IUserService {
|
|
|
|
|
|
private final PlayersItemsLogMapper playersItemsLogMapper;
|
|
|
|
|
|
+ private final ParticipantsMapper participantsMapper;
|
|
|
|
|
|
private static final ObjectMapper objectMapper = new ObjectMapper();
|
|
|
|
|
|
@@ -108,15 +109,16 @@ public class UserServiceImpl implements IUserService {
|
|
|
Page<UserVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
|
|
List<UserVo> resultRecords = result.getRecords();
|
|
|
for (UserVo resultRecord : resultRecords) {
|
|
|
- int userRewardCount = rewardClaimsMapper.selectUserRewardCount(resultRecord.getId());
|
|
|
- resultRecord.setTournamentCount(userRewardCount);
|
|
|
+ //int userRewardCount = rewardClaimsMapper.selectUserRewardCount(resultRecord.getId());
|
|
|
+
|
|
|
+ int tournamentCount= participantsMapper.selectUserTournamentTotal(resultRecord.getId());
|
|
|
+ resultRecord.setTournamentCount(tournamentCount);
|
|
|
|
|
|
PlayerItemsVo playerItemsVo = playerItemsMapper.selectPlayerItemsInfo(resultRecord.getId(), 1001L);
|
|
|
|
|
|
if(playerItemsVo!=null){
|
|
|
//道具数量 /门票数
|
|
|
resultRecord.setItemsQuantity(playerItemsVo.getQuantity());
|
|
|
-
|
|
|
}
|
|
|
|
|
|
Long jiFenCount = playerItemsMapper.selectPlayerJiFenCount(resultRecord.getId());
|