record_id, uid, gift_id, gift_num, admin_id, type, create_time SELECT LAST_INSERT_ID() insert into give_user_gift_record (uid, gift_id, gift_num, admin_id, type, create_time ) values (#{uid,jdbcType=BIGINT}, #{giftId,jdbcType=INTEGER}, #{giftNum,jdbcType=INTEGER}, #{adminId,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP} ) SELECT LAST_INSERT_ID() insert into give_user_gift_record uid, gift_id, gift_num, admin_id, type, create_time, #{uid,jdbcType=BIGINT}, #{giftId,jdbcType=INTEGER}, #{giftNum,jdbcType=INTEGER}, #{adminId,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, update give_user_gift_record uid = #{uid,jdbcType=BIGINT}, gift_id = #{giftId,jdbcType=INTEGER}, gift_num = #{giftNum,jdbcType=INTEGER}, admin_id = #{adminId,jdbcType=INTEGER}, type = #{type,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, where record_id = #{recordId,jdbcType=INTEGER} update give_user_gift_record set uid = #{uid,jdbcType=BIGINT}, gift_id = #{giftId,jdbcType=INTEGER}, gift_num = #{giftNum,jdbcType=INTEGER}, admin_id = #{adminId,jdbcType=INTEGER}, type = #{type,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP} where record_id = #{recordId,jdbcType=INTEGER} delete from give_user_gift_record where record_id = #{recordId,jdbcType=INTEGER}