From 54a64e9a13344e39470de8eff1d28a0eec669cf6 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期日, 24 三月 2024 21:45:01 +0800
Subject: [PATCH] 题目导入模板下载
---
src/main/resources/mapper/QuestionSubjectMapper.xml | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/QuestionSubjectMapper.xml b/src/main/resources/mapper/QuestionSubjectMapper.xml
index a647448..5811325 100644
--- a/src/main/resources/mapper/QuestionSubjectMapper.xml
+++ b/src/main/resources/mapper/QuestionSubjectMapper.xml
@@ -43,4 +43,16 @@
</foreach>
</insert>
+ <delete id="removeSubjectId" parameterType="java.lang.Integer">
+ delete from t_question_subject
+ where subject_id = #{subjectId}
+ </delete>
+
+ <select id="getSubject" resultMap="BaseResultMap">
+ select qs.*,s.name as subName
+ from t_question_subject qs
+ left join t_subject s on qs.subject_id = s.id
+ where subject_id = #{id} and qs.deleted = 0 and s.deleted = 0
+ </select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0