package cn.cslg.pas.mapper.asso;

import cn.cslg.pas.domain.asso.AssoEventProject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 事件和专题库关联表的Mapper层接口
 *
 * @Author chenyu
 * @Date 2023/4/2
 */
@Repository
public interface AssoEventProjectMapper extends BaseMapper<AssoEventProject> {
    /**
     * 根据事件ids和专题库id批量删除数据
     *
     * @param eventIds  事件ids
     * @param projectId 专题库id
     * @return 返回受影响的行数
     */
    int deleteByEventIdsAndProjectId(List<Integer> eventIds, Integer projectId);

}
