package cn.reghao.tnb.content.app.exam.db.mapper;

import cn.reghao.jutil.jdk.web.db.BaseMapper;
import cn.reghao.tnb.content.app.exam.model.po.PaperAnswer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author reghao
 * @date 2024-09-02 09:41:29
 */
@Mapper
public interface PaperAnswerMapper extends BaseMapper<PaperAnswer> {
    void updatePaperAnswer(@Param("resultId") int resultId,
                           @Param("questionId") long questionId,
                           @Param("review") String review,
                           @Param("score") int score);

    List<PaperAnswer> findByResultId(int resultId);
}
