PostNoticeMapper.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package com.ruoyi.system.mapper;
  2. import java.util.Date;
  3. import java.util.List;
  4. import com.ruoyi.system.domain.PostNotice;
  5. import org.apache.ibatis.annotations.Param;
  6. /**
  7. * 公告Mapper接口
  8. *
  9. * @author ruoyi
  10. * @date 2023-01-14
  11. */
  12. public interface PostNoticeMapper
  13. {
  14. /**
  15. * 查询公告
  16. *
  17. * @param noticeId 公告主键
  18. * @return 公告
  19. */
  20. public PostNotice selectPostNoticeByNoticeId(Long noticeId);
  21. /**
  22. * 查询公告列表
  23. *
  24. * @param postNotice 公告
  25. * @return 公告集合
  26. */
  27. public List<PostNotice> selectPostNoticeList(PostNotice postNotice);
  28. /**
  29. * 查询公告详情
  30. * @param noticeId
  31. * @return
  32. */
  33. public String selectDetailByNoticeId(Long noticeId);
  34. /**
  35. * 新增公告
  36. *
  37. * @param postNotice 公告
  38. * @return 结果
  39. */
  40. public int insertPostNotice(PostNotice postNotice);
  41. /**
  42. * 修改公告
  43. *
  44. * @param postNotice 公告
  45. * @return 结果
  46. */
  47. public int updatePostNotice(PostNotice postNotice);
  48. /**
  49. * 删除公告
  50. *
  51. * @param noticeId 公告主键
  52. * @return 结果
  53. */
  54. public int deletePostNoticeByNoticeId(Long noticeId);
  55. /**
  56. * 批量删除公告
  57. *
  58. * @param noticeIds 需要删除的数据主键集合
  59. * @return 结果
  60. */
  61. public int deletePostNoticeByNoticeIds(Long[] noticeIds);
  62. public List<PostNotice> selectPostNoticeListByTitleOrNoticeTime(@Param("noticeTitle")String noticeTitle, @Param("noticeTimeLeft")Date noticeTimeLeft, @Param("noticeTimeRight")Date noticeTimeRight);
  63. }