From 8458e64aab474c0fc2f49ae4ff22fb11ce5cf6e2 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Mon, 11 Nov 2024 16:55:28 +0800
Subject: [PATCH] 批次新增学员查询条件,新增题目导入接口
---
exam-system/src/main/resources/mapper/system/ExPaperQuestionMapper.xml | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/exam-system/src/main/resources/mapper/system/ExPaperQuestionMapper.xml b/exam-system/src/main/resources/mapper/system/ExPaperQuestionMapper.xml
index cb6fb59..7c081f1 100644
--- a/exam-system/src/main/resources/mapper/system/ExPaperQuestionMapper.xml
+++ b/exam-system/src/main/resources/mapper/system/ExPaperQuestionMapper.xml
@@ -13,11 +13,12 @@
</delete>
<delete id="deletePaperQuestion">
- delete from ex_paper_question
+ delete a from ex_paper_question as a
+ inner join ex_question as b on b.id=a.question_id
<where>
- and paper_id=#{paperId}
+ and a.paper_id=#{paperId}
<if test="questionType!=null">
- and question_type=#{questionType}
+ and b.question_type=#{questionType}
</if>
</where>
</delete>
--
Gitblit v1.9.2