package com.sundot.airport.exam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sundot.airport.exam.domain.WeakModuleAnalysis;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <b>功能名：</b>WeakModuleAnalysisMapper<br>
 * <b>说明：</b> 薄弱模块分析Mapper <br>
 * <b>著作权：</b> Copyright (C) 2025 SUNDOT CORPORATION<br>
 * <b>修改履历：
 *
 * @author Simon Lin
 */
@Mapper
public interface WeakModuleAnalysisMapper extends BaseMapper<WeakModuleAnalysis> {

    /**
     * 查询用户的薄弱模块列表（按正确率升序）
     *
     * @param userId 用户ID
     * @return 薄弱模块列表
     */
    List<WeakModuleAnalysis> selectWeakModulesByUserId(@Param("userId") Long userId);
}
