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


import cn.iocoder.yudao.module.jx.domain.DriveSchoolNotice;
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 ruoyi
 * @date 2024-05-28
 */
@Mapper
public interface DriveSchoolNoticeMapper
{
    /**
     * 查询通知
     *
     * @param id 通知主键
     * @return 通知
     */
    public DriveSchoolNotice selectDriveSchoolNoticeById(Long id);

    /**
     * 查询通知列表
     *
     * @param driveSchoolNotice 通知
     * @return 通知集合
     */
    public IPage<DriveSchoolNotice> selectDriveSchoolNoticeList(@Param("entity") DriveSchoolNotice driveSchoolNotice, Page<DriveSchoolNotice> page);
    public List<DriveSchoolNotice> selectDriveSchoolNoticeListAll(@Param("entity") DriveSchoolNotice driveSchoolNotice);

    /**
     * 新增通知
     *
     * @param driveSchoolNotice 通知
     * @return 结果
     */
    public int insertDriveSchoolNotice(DriveSchoolNotice driveSchoolNotice);

    /**
     * 修改通知
     *
     * @param driveSchoolNotice 通知
     * @return 结果
     */
    public int updateDriveSchoolNotice(DriveSchoolNotice driveSchoolNotice);

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

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