INSERT INTO Exam ( examId, examType, isRecommend, title, description, examPaperCount, examPapers, created, startTime, endTime , isNetExam ,isOral,teacherId,status ,assigntime ,type ) Values ( #{examId}, #{examType}, #{isRecommend}, #{title}, #{description}, #{examPaperCount}, #{examPapers},current_timestamp, #{startTime}, #{endTime} , #{isNetExam} ,#{isOral},#{teacherId},#{status} ,#{assigntime} ,#{type} ) UPDATE Exam SET examId = #{examId}, examType = #{examType}, isRecommend = #{isRecommend}, title = #{title}, description = #{description}, examPaperCount = #{examPaperCount}, examPapers = #{examPapers}, created = #{created}, startTime = #{startTime}, endTime = #{endTime} , isNetExam = #{isNetExam} ,isOral=#{isOral},teacherId=#{teacherId},status=#{status} ,assigntime =#{assigntime} where examId=#{examId}