record_id, uid, headwear_id, headwear_date, type, create_time SELECT LAST_INSERT_ID() insert into headwear_get_record (uid, headwear_id, headwear_date, type, create_time) values (#{uid,jdbcType=BIGINT}, #{headwearId,jdbcType=BIGINT}, #{headwearDate,jdbcType=INTEGER}, #{type,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP}) SELECT LAST_INSERT_ID() insert into headwear_get_record uid, headwear_id, headwear_date, type, create_time, #{uid,jdbcType=BIGINT}, #{headwearId,jdbcType=BIGINT}, #{headwearDate,jdbcType=INTEGER}, #{type,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP}, update headwear_get_record uid = #{uid,jdbcType=BIGINT}, headwear_id = #{headwearId,jdbcType=BIGINT}, headwear_date = #{headwearDate,jdbcType=INTEGER}, type = #{type,jdbcType=TINYINT}, create_time = #{createTime,jdbcType=TIMESTAMP}, where record_id = #{recordId,jdbcType=BIGINT} update headwear_get_record set uid = #{uid,jdbcType=BIGINT}, headwear_id = #{headwearId,jdbcType=BIGINT}, headwear_date = #{headwearDate,jdbcType=INTEGER}, type = #{type,jdbcType=TINYINT}, create_time = #{createTime,jdbcType=TIMESTAMP} where record_id = #{recordId,jdbcType=BIGINT} delete from headwear_get_record where record_id = #{recordId,jdbcType=BIGINT}