INSERT INTO Material ( materialId, teacherId, title, content, picture, origiVoice, created, status , areaid , isNetMate ) Values ( #{materialId}, #{teacherId}, #{title}, #{content}, #{picture}, #{origiVoice},current_timestamp, #{status} , #{areaid} , #{isNetMate} ) UPDATE Material SET materialId = #{materialId}, teacherId = #{teacherId}, title = #{title}, content = #{content}, picture = #{picture}, origiVoice = #{origiVoice}, created = #{created}, status = #{status} , areaid = #{areaid} , isNetMate = #{isNetMate} where materialId=#{materialId} UPDATE Material SET status = 0 WHERE materialId in #{item}