insert into ex_paper_student(paper_id,student_id,create_id) values (#{item.paperId},#{item.studentId},#{item.createId}) update ex_paper_student set completed=#{completed} where id in #{item} update ex_paper_student set state = 0,start_time=null ,end_time = null where paper_id =#{paperId} and student_id =#{studentId} delete from ex_paper_student where paper_id =#{paperId} and student_id = #{studentId}