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

import cn.iocoder.yudao.module.jx.domain.DriveSchoolDynamic;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
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-10
 */
@Mapper
public interface DriveSchoolDynamicMapper
{
    /**
     * 查询行业动态
     *
     * @param id 行业动态主键
     * @return 行业动态
     */
    public DriveSchoolDynamic selectDriveSchoolDynamicById(Long id);

    /**
     * 查询行业动态列表
     *
     * @param driveSchoolDynamic 行业动态
     * @return 行业动态集合
     */
    public IPage<DriveSchoolDynamic> selectDriveSchoolDynamicList(@Param("entity") DriveSchoolDynamic driveSchoolDynamic, Page<DriveSchoolDynamic> page);
    public List<DriveSchoolDynamic> selectDriveSchoolDynamicListAll(@Param("entity") DriveSchoolDynamic driveSchoolDynamic);

    /**
     * 新增行业动态
     *
     * @param driveSchoolDynamic 行业动态
     * @return 结果
     */
    public int insertDriveSchoolDynamic(DriveSchoolDynamic driveSchoolDynamic);

    /**
     * 修改行业动态
     *
     * @param driveSchoolDynamic 行业动态
     * @return 结果
     */
    public int updateDriveSchoolDynamic(DriveSchoolDynamic driveSchoolDynamic);

    /**
     * 删除行业动态
     *
     * @param id 行业动态主键
     * @return 结果
     */
    public int deleteDriveSchoolDynamicById(Long id);

    /**
     * 批量删除行业动态
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDriveSchoolDynamicByIds(Long[] ids);
}
