package com.ruoyi.system.mapper; import java.util.List; import com.ruoyi.system.domain.SysNotice; /** * 通知公告表 数据层 * * @author ruoyi */ public interface SysNoticeMapper { /** * 查询公告信息 * * @param noticeId 公告ID * @return 公告信息 */ public SysNotice selectNoticeById(Long noticeId); /** * 查询公告列表 * * @param notice 公告信息 * @return 公告集合 */ public List selectNoticeList(SysNotice notice); /** * 查询用户端公告列表 * * @param notice 公告信息 * @return 公告集合 */ public List selectNoticeListForMember(SysNotice notice); /** * 新增公告 * * @param notice 公告信息 * @return 结果 */ public int insertNotice(SysNotice notice); /** * 批量新增到期提醒 * @param list 列表 * @return */ public int batchInsertNotices(List list); /** * 修改公告 * * @param notice 公告信息 * @return 结果 */ public int updateNotice(SysNotice notice); /** * 批量删除公告 * * @param noticeId 公告ID * @return 结果 */ public int deleteNoticeById(Long noticeId); /** * 批量删除公告信息 * * @param noticeIds 需要删除的公告ID * @return 结果 */ public int deleteNoticeByIds(Long[] noticeIds); /** * 公告浏览量+1 * * @param noticeId 公告ID * @return 结果 */ public int addNoticeVisitsNum(Long noticeId); /** * 查询用户端公告弹窗列表 * * @param notice 公告信息 * @return 公告集合 */ public List selectSysNoticePopList(SysNotice notice); }