| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.system.domain.SysNotice; |
| | |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysNoticeServiceImpl implements ISysNoticeService |
| | | { |
| | | public class SysNoticeServiceImpl extends ServiceImpl<SysNoticeMapper, SysNotice> implements ISysNoticeService { |
| | | @Autowired |
| | | private SysNoticeMapper noticeMapper; |
| | | |
| | |
| | | * @return 公告信息 |
| | | */ |
| | | @Override |
| | | public SysNotice selectNoticeById(Long noticeId) |
| | | { |
| | | public SysNotice selectNoticeById(Long noticeId) { |
| | | return noticeMapper.selectNoticeById(noticeId); |
| | | } |
| | | |
| | |
| | | * @return 公告集合 |
| | | */ |
| | | @Override |
| | | public List<SysNotice> selectNoticeList(SysNotice notice) |
| | | { |
| | | public List<SysNotice> selectNoticeList(SysNotice notice) { |
| | | return noticeMapper.selectNoticeList(notice); |
| | | } |
| | | |
| | |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertNotice(SysNotice notice) |
| | | { |
| | | public int insertNotice(SysNotice notice) { |
| | | return noticeMapper.insertNotice(notice); |
| | | } |
| | | |
| | |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateNotice(SysNotice notice) |
| | | { |
| | | public int updateNotice(SysNotice notice) { |
| | | return noticeMapper.updateNotice(notice); |
| | | } |
| | | |
| | |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteNoticeById(Long noticeId) |
| | | { |
| | | public int deleteNoticeById(Long noticeId) { |
| | | return noticeMapper.deleteNoticeById(noticeId); |
| | | } |
| | | |
| | |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteNoticeByIds(Long[] noticeIds) |
| | | { |
| | | public int deleteNoticeByIds(Long[] noticeIds) { |
| | | return noticeMapper.deleteNoticeByIds(noticeIds); |
| | | } |
| | | } |