| | |
| | | |
| | | List<Map<String, Object>> topicLst = findListWithMapByHql(hql, hqlMap, new Pager(pageSize, pageNum)); |
| | | |
| | | int sunCount=0; |
| | | for (Map<String, Object> map : topicLst) { |
| | | String topicId = (String) map.get("topicId"); |
| | | String findPeopleCountByHql = "select distinct c.commentterId as commentterId from CommentObject o,Comment c where o.deleteFlag is false and o.commentObjectUid =:topicId and" |
| | |
| | | List<Map<String, Object>> commentIdLst = findListWithMapByHql(findPeopleCountByHql, |
| | | CollectionUtils.newObjectMap("topicId", topicId)); |
| | | int peopleCount = commentIdLst.size();// 参与人数 |
| | | sunCount+=peopleCount; |
| | | map.put("peopleCount", peopleCount); |
| | | } |
| | | return new Result(true, "success", |
| | | CollectionUtils.newObjectMap("topicLst", topicLst, "topicCount", topicCount)); |
| | | return new Result(true, "success",CollectionUtils.newObjectMap("topicLst", topicLst, "topicCount", topicCount,"sunCount",sunCount)); |
| | | } |
| | | |
| | | @Override |