| | |
| | | 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; |
| | |
| | | + "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, " |
| | |
| | | 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 |
| | |
| | | * @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); |
| | | } |