| | |
| | | " FROM " + |
| | | " com_act_neighbor_circle AS canc" + |
| | | " left join sys_user as su on su.user_id = canc.release_id" + |
| | | " where canc.status = 2 and canc.community_id = #{communityId} " + |
| | | " where canc.status = 2 and canc.community_id = #{neighborCircleAppDTO.communityId} " + |
| | | "<if test='neighborCircleAppDTO.type != null and neighborCircleAppDTO.type == 1'>" + |
| | | " order by (canc.last_views_num + canc.last_comment_num + canc.last_fabulous_num) desc " + |
| | | " </if> " + |
| | |
| | | "com_act_neighbor_circle nc\n" + |
| | | "LEFT JOIN sys_user u ON nc.release_id = u.user_id\n" + |
| | | "<where>"+ |
| | | "<if test='neighborCircleAdminDTO.releaseContent != null and neighborCircleAdminDTO.releaseContent.trim() != ""'>" + |
| | | "and t.release_content LIKE concat('%',#{neighborCircleAdminDTO.releaseContent}, '%' ) " + |
| | | "nc.community_id = #{neighborCircleAdminDTO.communityId} \n"+ |
| | | "<if test='neighborCircleAdminDTO.releaseContent != null and neighborCircleAdminDTO.releaseContent != ""'>" + |
| | | "and nc.release_content like concat('%',#{neighborCircleAdminDTO.releaseContent},'%') \n" + |
| | | " </if> " + |
| | | "<if test='neighborCircleAdminDTO.startAt != null and neighborCircleAdminDTO.endAt !=null '>" + |
| | | "and t.create_at between #{neighborCircleAdminDTO.startAt} and #{neighborCircleAdminDTO.endAt} " + |
| | | "and nc.create_at between #{neighborCircleAdminDTO.startAt} and #{neighborCircleAdminDTO.endAt} \n" + |
| | | " </if> " + |
| | | "</where>"+ |
| | | "order by nc.`status` asc,nc.create_at desc " + |
| | |
| | | @Select("select * from sys_user where user_id=#{userId}") |
| | | 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 " + |
| | | " from com_act_neighbor_circle as canc " + |
| | | " where canc.release_id = #{userId} order by create_at desc" + |
| | | " </script>") |
| | | IPage<ComActNeighborCircleAppVO> neighborExamineByApp(Page page,@Param("userId") Long userId); |
| | | |
| | | } |