id, topic_id, uid, tape, type, location, privacy_type, likes, comments, admin_id, state, create_time,content,tape_duration SELECT LAST_INSERT_ID() insert into moments (topic_id, uid, tape, type, location, privacy_type, likes, comments, admin_id, state, create_time, content ) values (#{topicId,jdbcType=INTEGER}, #{uid,jdbcType=BIGINT}, #{tape,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{location,jdbcType=VARCHAR}, #{privacyType,jdbcType=INTEGER}, #{likes,jdbcType=INTEGER}, #{comments,jdbcType=INTEGER}, #{adminId,jdbcType=INTEGER}, #{state,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{content,jdbcType=LONGVARCHAR} ) SELECT LAST_INSERT_ID() insert into moments topic_id, uid, tape, type, location, privacy_type, likes, comments, admin_id, state, create_time, content, #{topicId,jdbcType=INTEGER}, #{uid,jdbcType=BIGINT}, #{tape,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{location,jdbcType=VARCHAR}, #{privacyType,jdbcType=INTEGER}, #{likes,jdbcType=INTEGER}, #{comments,jdbcType=INTEGER}, #{adminId,jdbcType=INTEGER}, #{state,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{content,jdbcType=LONGVARCHAR}, update moments topic_id = #{topicId,jdbcType=INTEGER}, uid = #{uid,jdbcType=BIGINT}, tape = #{tape,jdbcType=VARCHAR}, type = #{type,jdbcType=INTEGER}, location = #{location,jdbcType=VARCHAR}, privacy_type = #{privacyType,jdbcType=INTEGER}, likes = #{likes,jdbcType=INTEGER}, comments = #{comments,jdbcType=INTEGER}, admin_id = #{adminId,jdbcType=INTEGER}, state = #{state,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, content = #{content,jdbcType=LONGVARCHAR}, update_time = #{updateTime,jdbcType=TIMESTAMP}, where id = #{id,jdbcType=INTEGER} update moments set topic_id = #{topicId,jdbcType=INTEGER}, uid = #{uid,jdbcType=BIGINT}, tape = #{tape,jdbcType=VARCHAR}, type = #{type,jdbcType=INTEGER}, location = #{location,jdbcType=VARCHAR}, privacy_type = #{privacyType,jdbcType=INTEGER}, likes = #{likes,jdbcType=INTEGER}, comments = #{comments,jdbcType=INTEGER}, admin_id = #{adminId,jdbcType=INTEGER}, state = #{state,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, content = #{content,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=INTEGER} delete from moments where id = #{id,jdbcType=INTEGER} update moments admin_id = #{adminId,jdbcType=INTEGER}, state = #{state,jdbcType=INTEGER}, update_time = #{updateTime,jdbcType=TIMESTAMP}, where id = #{id,jdbcType=INTEGER}