package cn.iocoder.yudao.module.appBase.mapper;

import cn.iocoder.yudao.module.appBase.domain.SysAnnouncement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * 系统通知Mapper接口
 * 
 * @author zcy
 * @date 2023-09-21
 */
@Mapper
public interface SysAnnouncementMapper  extends BaseMapper<SysAnnouncement>
{
    /**
     * 查询系统通知
     * 
     * @param id 系统通知主键
     * @return 系统通知
     */
    public SysAnnouncement selectSysAnnouncementById(Long id);

    /**
     * 查询系统通知列表
     * 
     * @param sysAnnouncement 系统通知
     * @return 系统通知集合
     */
    IPage<SysAnnouncement> selectSysAnnouncementList(@Param("map") SysAnnouncement sysAnnouncement, Page<SysAnnouncement> page);


    /**
     * 删除系统通知
     * 
     * @param id 系统通知主键
     * @return 结果
     */
    public int deleteSysAnnouncementById(Long id);

    /**
     * 批量删除系统通知
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysAnnouncementByIds(Long[] ids);
}
