From 61f0357bef6d6aea12a8c6ecad97db57ee4149fe Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期四, 25 九月 2025 08:35:39 +0800
Subject: [PATCH] 修改
---
multi-system/src/main/resources/mapper/system/ExStudentAnswerMapper.xml | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/multi-system/src/main/resources/mapper/system/ExStudentAnswerMapper.xml b/multi-system/src/main/resources/mapper/system/ExStudentAnswerMapper.xml
index c283c0a..2363cdd 100644
--- a/multi-system/src/main/resources/mapper/system/ExStudentAnswerMapper.xml
+++ b/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}
--
Gitblit v1.9.2