<?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.ExPaperQuestionMapper">
|
<insert id="batchInsert">
|
insert into ex_paper_question(paper_id,question_id,score) values
|
<foreach collection="list" item="item" index="index" separator=",">
|
(#{item.paperId},#{item.questionId},#{item.score})
|
</foreach>
|
</insert>
|
|
<delete id="deletebyPapaerId">
|
delete from ex_paper_question where paper_id=#{paperId}
|
</delete>
|
|
<delete id="deletePaperQuestion">
|
delete from ex_paper_question
|
<where>
|
and paper_id=#{paperId}
|
<if test="questionType!=null">
|
and question_type=#{questionType}
|
</if>
|
</where>
|
</delete>
|
</mapper>
|