| | |
| | | if (list != null && list.size() > 0) { |
| | | Map<Long, UserInfo> userInfoMap = userInfoService.listUserInfoAsMap(UserInfoUtil.getBaseUserList(list)); |
| | | for (ActivityJoinerRankInfo info : list) { |
| | | UserInfo user = userInfoMap.get(info.getUid()); |
| | | UserInfo user = userInfoMap.get(Long.parseLong(info.getUid())); |
| | | |
| | | if (user != null) { |
| | | if (user.getId().longValue() == acceptData.getUid()) { |
| | | continue; |
| | | } |
| | | voList.add(new ActivityJoinerRankInfoVO(new SimpleUser(user.getId(), user.getNickName(), user.getPortrait()), info.getRank(), info.getWeight())); |
| | | } |
| | | } |
| | |
| | | if (list != null && list.size() > 0) { |
| | | Map<Long, UserInfo> userInfoMap = userInfoService.listUserInfoAsMap(UserInfoUtil.getBaseUserList(list)); |
| | | for (ActivitySimpleUser info : list) { |
| | | UserInfo user = userInfoMap.get(info.getUid()); |
| | | UserInfo user = userInfoMap.get(Long.parseLong(info.getUid())); |
| | | if (user != null) { |
| | | voList.add(new SimpleUser(user.getId(), user.getNickName(), user.getPortrait())); |
| | | } |
| | |
| | | List<ActivityDetailInfoDTO> voList = activityService.getActivityDetail(activityIdList, appId, uid, type == 2 ? true : false); |
| | | |
| | | JSONObject data = new JSONObject(); |
| | | data.put("data", ActivityListItemInfoVOFactory.create(voList)); |
| | | data.put("data", JsonUtil.getSimpleGson().toJson(ActivityListItemInfoVOFactory.create(voList))); |
| | | data.put("count", count); |
| | | |
| | | return JsonUtil.loadTrueResult(data); |