派生自 projectDept/qhighschool

EricsHu
2023-06-19 bc3b37b1622091def1f6ee4c3eb3ff79499b3466
src/main/java/com/qxueyou/scc/operation/topic/service/impl/TopicService.java
@@ -677,6 +677,7 @@
        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"
@@ -684,10 +685,10 @@
            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