“djh”
2025-07-24 c0f16750cb9097a8db7b68f8c1794c2aec28ca15
multi-system/src/main/resources/mapper/system/ExStudentAnswerMapper.xml
@@ -1,6 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gkhy.exam.system.mapper.ExStudentAnswerMapper">
    <update id="updateState">
        update ex_student_answer set answer = null where  paper_id = #{paperId} AND student_id = #{studentId}
    </update>
    <delete id="deletedByPaperStudentId">
        DELETE
        FROM
            ex_student_answer
        WHERE
            paper_id = #{paperId}
          AND student_id = #{studentId}
    </delete>
    <select id="countByPaperId" resultType="java.lang.Integer">
        select count(1) from ex_student_answer where paper_id=#{paperId} and student_id=#{studentId}