kongzy
2024-09-14 f0f00e9ba8a755e4317e029d73b69a92ad9f9df1
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>