From 5a8a90c095280fbd2106869ecd2bad10e01a57a6 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期四, 23 十二月 2021 18:10:22 +0800 Subject: [PATCH] 12/23 大屏修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDiscussDAO.java | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDiscussDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDiscussDAO.java index dfe30b7..ff066be 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDiscussDAO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDiscussDAO.java @@ -4,6 +4,7 @@ import java.util.List; import java.util.Map; +import com.panzhihua.common.model.vos.community.StatisticsCommVO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; @@ -74,6 +75,24 @@ + "GROUP BY " + "c.id " + ")t order by t.create_at desc" + "</script>") IPage<ComActDiscussCommentVO> pageDiscussComment(Page page, @Param("pageComActDiscussCommentDTO") PageComActDiscussCommentDTO pageComActDiscussCommentDTO); + + /** + * 议事投票-评论-后台分页查询 + * + * @param pageComActDiscussCommentDTO + * 分页查询参数 + * @return ComActDiscussCommentVO + */ + IPage<ComActDiscussCommentVO> pageDiscussCommentAdmin(Page page, + @Param("pageComActDiscussCommentDTO") PageComActDiscussCommentDTO pageComActDiscussCommentDTO); + + /** + * 默认查询评论下两条回复信息 + * @param commentId 评论id + * @return 回复列表 + */ + List<ComActDiscussCommentVO> getDiscussCommentReplyList(@Param("commentId") Long commentId); + // @Select("<script> " + "select t.* from (" + "SELECT " + "d.id, " + "d.vote_title, " // + "if(d.address is null or d.address='null',a.name,d.address )address, " + "d.photo_pah, " @@ -168,6 +187,13 @@ List<ComActDiscussOptionVO> getScreenDiscussOptionList(@Param("discussId") Long discussId); /** + * 添加议事投票评论数 + * @param discussId 议事投票 + * @param num 添加数量 + */ + void addCommentCount(@Param("discussId") Long discussId,@Param("num") Integer num); + + /** * 更新一起议主题状态 * @param discussId * @param status @@ -194,4 +220,20 @@ * @return */ int batchUpdateViewNum(@Param("needDealMap") HashMap<Long, Integer> needDealMap); + + /** + * 居民自治-议事投票类型占比统计 + * @param communityId + * @return + */ + List<StatisticsCommVO> selectTypePercent(@Param("communityId") Long communityId); + + /** + * 获取一起议标题 + * @param type + * @param communityId + * @param pageSize + * @return + */ + List<String> getTitles(@Param("type") int type, @Param("communityId") Long communityId, @Param("pageSize") Integer pageSize); } -- Gitblit v1.7.1