INSERT INTO WrongBook ( uid, guid,partType,examPaperId,examAnswerId,origiScore,trueScore,multiQues,isCorrect,created,examId) Values ( #{uid}, #{guid},#{partType},#{examPaperId},#{examAnswerId},#{origiScore},#{trueScore},#{multiQues,javaType=Object,jdbcType=OTHER,typeHandler=com.spoken.api.tools.JsonTypeHandler},#{isCorrect},#{created},#{examId} ) UPDATE WrongBook SET partType=#{partType},examPaperId=#{examPaperId},examAnswerId=#{examAnswerId},origiScore=#{origiScore},trueScore=#{trueScore},multiQues=#{multiQues,javaType=Object,jdbcType=OTHER,typeHandler=com.spoken.api.tools.JsonTypeHandler},isCorrect=#{isCorrect},created=#{created} where guid=#{guid} and uid=#{uid} and examId=#{examId} UPDATE WrongBook SET isCorrect=#{isCorrect},created=now(),trueScore=#{trueScore},multiQues=#{multiQues,javaType=Object,jdbcType=OTHER,typeHandler=com.spoken.api.tools.JsonTypeHandler} where guid=#{guid} and uid=#{uid}