| | |
| | | "canc.last_comment_num," + |
| | | "canc.last_fabulous_num," + |
| | | "canc.last_views_num," + |
| | | "canc.type," + |
| | | "su.nick_name as name," + |
| | | "su.community_id," + |
| | | "su.image_url as headUrl " + |
| | | " FROM " + |
| | | " com_act_neighbor_circle AS canc" + |
| | |
| | | " order by (canc.last_views_num + canc.last_comment_num + canc.last_fabulous_num) desc " + |
| | | " </if> " + |
| | | "<if test='neighborCircleAppDTO.type != null and neighborCircleAppDTO.type == 2'>" + |
| | | " order by canc.reply_at desc,canc.create_at desc " + |
| | | " order by canc.create_at desc " + |
| | | " </if> " + |
| | | "<if test='neighborCircleAppDTO.type != null and neighborCircleAppDTO.type == 3'>" + |
| | | " order by (canc.views_num + canc.comment_num + canc.fabulous_num) desc " + |
| | |
| | | @Select("<script> " + |
| | | "select canc.id,su.nick_name as name,su.image_url as headUrl,canc.release_content " + |
| | | ",canc.release_images,canc.comment_num,canc.fabulous_num,canc.forward_num,canc.views_num " + |
| | | ",canc.is_boutique,canc.create_at,canc.reply_at from com_act_neighbor_circle as canc " + |
| | | ",canc.is_boutique,canc.create_at,canc.reply_at,su.community_id,canc.type from com_act_neighbor_circle as canc " + |
| | | " left join sys_user as su on su.user_id = canc.release_id where id = #{circleId}"+ |
| | | " </script>") |
| | | ComActNeighborCircleDetailAppVO neighborDetailByApp(@Param("circleId") Long circleId); |
| | | @Select("<script> \n"+ |
| | | "SELECT\n" + |
| | | "nc.*,\n" + |
| | | "u.`name` AS releaseName,u.`type` as userType\n" + |
| | | ",ca.name as communityName\n" + |
| | | "u.`nick_name` AS releaseName,u.`type` as userType\n" + |
| | | ",u.name as communityName\n" + |
| | | "FROM\n" + |
| | | "com_act_neighbor_circle nc\n" + |
| | | "LEFT JOIN sys_user u ON nc.release_id = u.user_id\n" + |
| | | "left join com_act ca on u.community_id=ca.community_id \n" + |
| | | "<where>"+ |
| | | "nc.community_id = #{neighborCircleAdminDTO.communityId} \n"+ |
| | | "<if test='neighborCircleAdminDTO.releaseContent != null and neighborCircleAdminDTO.releaseContent != ""'>" + |
| | |
| | | AdministratorsUserVO selectUserByUserId(@Param("userId") Long userId); |
| | | |
| | | @Select("<script> " + |
| | | "select id,release_content,release_images,status,create_at,comment_num,fabulous_num,forward_num,views_num,refuse_reason " + |
| | | "select canc.id,canc.release_content,canc.release_images,canc.status,canc.create_at" + |
| | | ",canc.comment_num,canc.fabulous_num,canc.forward_num,canc.views_num,canc.refuse_reason,su.nick_name as name,su.image_url as headUrl " + |
| | | " from com_act_neighbor_circle as canc " + |
| | | " where canc.release_id = #{userId} order by create_at desc" + |
| | | " left join sys_user as su on su.user_id = canc.release_id " + |
| | | " where canc.release_id = #{userId} and canc.status != 3 order by create_at desc" + |
| | | " </script>") |
| | | IPage<ComActNeighborCircleAppVO> neighborExamineByApp(Page page,@Param("userId") Long userId); |
| | | |
| | |
| | | " from com_act_neighbor_circle_comment_reply as reply" + |
| | | " left join sys_user as su on su.user_id = reply.user_id" + |
| | | " left join sys_user as su1 on su1.user_id = reply.parent_user_id" + |
| | | " where reply.comment_id = #{commentId}") |
| | | " where reply.comment_id = #{commentId} and reply.status = 1") |
| | | IPage<ComActNeighborCommentReplyAppVO> neighborCommentReplyByApp(Page page, @Param("commentId") Long commentId); |
| | | |
| | | } |