【修改】试题、人员、试卷任务删除提示xx编号不能删除

This commit is contained in:
YOHO\20373
2025-06-13 01:47:28 +08:00
parent a11877976c
commit ce02eb0a22
15 changed files with 200 additions and 44 deletions

View File

@@ -133,6 +133,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectCountQu" resultType="java.lang.Integer">
select count(*) from exam_question
</select>
<select id="selectQuNumBuIds" resultType="java.lang.String">
select qu_num from exam_question where qu_id
IN
<foreach collection="list" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</select>
<insert id="insertExamQuestion" parameterType="ExamQuestion">
@@ -249,15 +256,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<delete id="deleteExamQuestionByQuId" parameterType="String">
UPDATE exam_question set deleted ='2' where qu_id = #{quId}
</delete>
<delete id="deleteExamQuestionByQuIds">
UPDATE exam_question
SET deleted = '2'
WHERE qu_id IN
<foreach collection="ids" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<update id="deleteExamQuestionByQuIds" parameterType="String">
UPDATE exam_question
SET deleted = '2'
WHERE qu_id IN
<foreach collection="ids" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</update>
<update id="setQuestionAuditByids">
UPDATE exam_question
SET audit = '2'