PoNoticeMapper.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package com.ruoyi.system.mapper;
  2. import com.ruoyi.system.domain.PoNotice;
  3. import org.apache.ibatis.annotations.Mapper;
  4. import java.util.List;
  5. /**
  6. * 通知公告表 数据层
  7. *
  8. * @author blue
  9. */
  10. @Mapper
  11. public interface PoNoticeMapper {
  12. /**
  13. * 查询公告信息
  14. *
  15. * @param newsId 公告ID
  16. * @return 公告信息
  17. */
  18. PoNotice selectPoNoticeById(Long newsId);
  19. /**
  20. * 查询公告列表
  21. *
  22. * @param news 公告信息
  23. * @return 公告集合
  24. */
  25. List<PoNotice> selectPoNoticeList(PoNotice news);
  26. /**
  27. * 新增公告
  28. *
  29. * @param news 公告信息
  30. * @return 结果
  31. */
  32. int insertPoNotice(PoNotice news);
  33. /**
  34. * 修改公告
  35. *
  36. * @param news 公告信息
  37. * @return 结果
  38. */
  39. int updatePoNotice(PoNotice news);
  40. /**
  41. * 批量删除公告
  42. *
  43. * @param newsId 公告ID
  44. * @return 结果
  45. */
  46. int deletePoNoticeById(Long newsId);
  47. /**
  48. * 批量删除公告信息
  49. *
  50. * @param newsIds 需要删除的公告ID
  51. * @return 结果
  52. */
  53. int deletePoNoticeByIds(Long[] newsIds);
  54. }