INSERT INTO ex_topic (topic, topic_type, topic_answer, topic_option, create_time,create_user_name) VALUES ( #{item.topic}, #{item.topicType}, #{item.topicAnswer}, #{item.topicOption},NOW(), #{item.createUserName} ) UPDATE ex_topic SET topic = #{item.topic}, topic_type = #{item.topicType}, topic_answer = #{item.topicAnswer}, topic_option = #{item.topicOption} WHERE id = #{item.id} DELETE FROM ex_topic WHERE id IN ( #{item.id} )