package org.dromara.main.mapper;

import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.main.domain.MainAbilityConfig;

import java.util.List;

public interface MainAbilityConfigMapper extends BaseMapperPlus<MainAbilityConfig, MainAbilityConfig> {
    /**
     * 根据测评ID查询能力配置列表
     */
    List<MainAbilityConfig> selectByEvaluationId(@Param("evaluationId") Long evaluationId);

    /**
     * 根据测评ID删除能力配置
     */
    int deleteByEvaluationId(@Param("evaluationId") Long evaluationId);

    /**
     * 批量插入能力配置
     */
    int insertBatch(@Param("configs") List<MainAbilityConfig> configs);
}
