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