12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- package com.ruoyi.system.mapper;
- import com.ruoyi.system.domain.communityNews.CommunityNews;
- import org.apache.ibatis.annotations.Param;
- import java.util.List;
- /**
- * 社区资讯Mapper接口
- *
- * @author boman
- * @date 2025-02-14
- */
- public interface CommunityNewsMapper
- {
- /**
- * 查询社区资讯
- *
- * @param communityId 社区资讯主键
- * @return 社区资讯
- */
- public CommunityNews selectCommunityNewsByCommunityId(Long communityId);
- /**
- * 查询社区资讯列表
- *
- * @param communityNews 社区资讯
- * @return 社区资讯集合
- */
- public List<CommunityNews> selectCommunityNewsList(CommunityNews communityNews);
- /**
- * 新增社区资讯
- *
- * @param communityNews 社区资讯
- * @return 结果
- */
- public int insertCommunityNews(CommunityNews communityNews);
- /**
- * 修改社区资讯
- *
- * @param communityNews 社区资讯
- * @return 结果
- */
- public int updateCommunityNews(CommunityNews communityNews);
- /**
- * 删除社区资讯
- *
- * @param communityId 社区资讯主键
- * @return 结果
- */
- public int deleteCommunityNewsByCommunityId(Long communityId);
- /**
- * 批量删除社区资讯
- *
- * @param communityIds 需要删除的数据主键集合
- * @return 结果
- */
- public int deleteCommunityNewsByCommunityIds(Long[] communityIds);
- /**
- * 批量删除社区资讯 等于把资讯关闭status = 2
- *
- * @param communityIds 需要删除的社区资讯主键
- * @return 结果
- */
- public int updateCommunityNewsStarsByCommunityId(Long[] communityIds);
- /**
- * 更新收藏数量
- * @param communityId
- * @param userStars
- * @return
- */
- public int updateCommunityNewsStars(@Param("communityId") Long communityId, @Param("userStars") String userStars);
- }
|