package yangtz.cs.liu.campus.mapper.epidemic;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yangtz.cs.liu.campus.domain.epidemic.EpidemicUserScoreDetail;
import yangtz.cs.liu.campus.domain.exam.ExamUserScoreDetail;

import java.util.List;

@Mapper
public interface EpidemicUserScoreDetailMapper extends BaseMapper<EpidemicUserScoreDetail> {

    /**
     * 根据userScoreId删除
     * @param userScoreId
     * @return
     */


    /**
     * 修改考生答题记录
     *
     * @param epidemicUserScoreDetail
     * @return
     */
    int updateEpidemicUserScoreDetail(EpidemicUserScoreDetail epidemicUserScoreDetail);

    /**
     * 批量新增（集合）
     *
     * @param epidemicUserScoreDetailList
     * @return
     */
    int insertEpidemicUserScoreDetail(@Param("list") List<EpidemicUserScoreDetail> epidemicUserScoreDetailList);


    int deleteByExamIds(Integer id);
}
