SysNoticeServiceImpl.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. package com.ozs.system.service.impl;
  2. import java.util.List;
  3. import com.ozs.system.domain.SysNotice;
  4. import com.ozs.system.service.ISysNoticeService;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Service;
  7. import com.ozs.system.mapper.SysNoticeMapper;
  8. /**
  9. * 公告 服务层实现
  10. *
  11. * @author ruoyi
  12. */
  13. @Service
  14. public class SysNoticeServiceImpl implements ISysNoticeService
  15. {
  16. @Autowired
  17. private SysNoticeMapper noticeMapper;
  18. /**
  19. * 查询公告信息
  20. *
  21. * @param noticeId 公告ID
  22. * @return 公告信息
  23. */
  24. @Override
  25. public SysNotice selectNoticeById(Long noticeId)
  26. {
  27. return noticeMapper.selectNoticeById(noticeId);
  28. }
  29. /**
  30. * 查询公告列表
  31. *
  32. * @param notice 公告信息
  33. * @return 公告集合
  34. */
  35. @Override
  36. public List<SysNotice> selectNoticeList(SysNotice notice)
  37. {
  38. return noticeMapper.selectNoticeList(notice);
  39. }
  40. /**
  41. * 新增公告
  42. *
  43. * @param notice 公告信息
  44. * @return 结果
  45. */
  46. @Override
  47. public int insertNotice(SysNotice notice)
  48. {
  49. return noticeMapper.insertNotice(notice);
  50. }
  51. /**
  52. * 修改公告
  53. *
  54. * @param notice 公告信息
  55. * @return 结果
  56. */
  57. @Override
  58. public int updateNotice(SysNotice notice)
  59. {
  60. return noticeMapper.updateNotice(notice);
  61. }
  62. /**
  63. * 删除公告对象
  64. *
  65. * @param noticeId 公告ID
  66. * @return 结果
  67. */
  68. @Override
  69. public int deleteNoticeById(Long noticeId)
  70. {
  71. return noticeMapper.deleteNoticeById(noticeId);
  72. }
  73. /**
  74. * 批量删除公告信息
  75. *
  76. * @param noticeIds 需要删除的公告ID
  77. * @return 结果
  78. */
  79. @Override
  80. public int deleteNoticeByIds(Long[] noticeIds)
  81. {
  82. return noticeMapper.deleteNoticeByIds(noticeIds);
  83. }
  84. }