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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fasterxml.jackson.databind.ser.Serializers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yangtz.cs.liu.campus.domain.exam.ExamUserScoreDetail;

import java.util.List;

@Mapper
public interface ExamUserScoreDetailMapper extends BaseMapper<ExamUserScoreDetail> {

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


    /**
     * 修改考生答题记录
     *
     * @param examUserScoreDetail
     * @return
     */
    int updateExamUserScoreDetail(ExamUserScoreDetail examUserScoreDetail);

    /**
     * 批量新增（集合）
     *
     * @param examUserScoreDetailList
     * @return
     */
    int insertExamUserScoreDetail(@Param("list") List<ExamUserScoreDetail> examUserScoreDetailList);


    int deleteByExamIds(Integer id);
}
