headwear_id, headwear_name, gold_price, seq_no, headwear_status, pic_url, has_gif_pic,
gif_url, has_vgg_pic, vgg_url, is_time_limit, effective_time, create_time, allow_purse,
left_level, mark_pic,buy_type
insert into headwear (headwear_id, headwear_name, gold_price,
seq_no, headwear_status, pic_url,
has_gif_pic, gif_url, has_vgg_pic,
vgg_url, is_time_limit, effective_time,
create_time, allow_purse, left_level,
mark_pic)
values (#{headwearId,jdbcType=INTEGER}, #{headwearName,jdbcType=VARCHAR}, #{goldPrice,jdbcType=BIGINT},
#{seqNo,jdbcType=INTEGER}, #{headwearStatus,jdbcType=TINYINT}, #{picUrl,jdbcType=VARCHAR},
#{hasGifPic,jdbcType=BIT}, #{gifUrl,jdbcType=VARCHAR}, #{hasVggPic,jdbcType=BIT},
#{vggUrl,jdbcType=VARCHAR}, #{isTimeLimit,jdbcType=BIT}, #{effectiveTime,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP}, #{allowPurse,jdbcType=TINYINT}, #{leftLevel,jdbcType=INTEGER},
#{markPic,jdbcType=VARCHAR})
insert into headwear
headwear_id,
headwear_name,
gold_price,
seq_no,
headwear_status,
pic_url,
has_gif_pic,
gif_url,
has_vgg_pic,
vgg_url,
is_time_limit,
effective_time,
create_time,
allow_purse,
left_level,
mark_pic,
buy_type,
#{headwearId,jdbcType=INTEGER},
#{headwearName,jdbcType=VARCHAR},
#{goldPrice,jdbcType=BIGINT},
#{seqNo,jdbcType=INTEGER},
#{headwearStatus,jdbcType=TINYINT},
#{picUrl,jdbcType=VARCHAR},
#{hasGifPic,jdbcType=BIT},
#{gifUrl,jdbcType=VARCHAR},
#{hasVggPic,jdbcType=BIT},
#{vggUrl,jdbcType=VARCHAR},
#{isTimeLimit,jdbcType=BIT},
#{effectiveTime,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP},
#{allowPurse,jdbcType=TINYINT},
#{leftLevel,jdbcType=INTEGER},
#{markPic,jdbcType=VARCHAR},
#{buyType,jdbcType=INTEGER},
update headwear
headwear_name = #{headwearName,jdbcType=VARCHAR},
gold_price = #{goldPrice,jdbcType=BIGINT},
seq_no = #{seqNo,jdbcType=INTEGER},
headwear_status = #{headwearStatus,jdbcType=TINYINT},
pic_url = #{picUrl,jdbcType=VARCHAR},
has_gif_pic = #{hasGifPic,jdbcType=BIT},
gif_url = #{gifUrl,jdbcType=VARCHAR},
has_vgg_pic = #{hasVggPic,jdbcType=BIT},
vgg_url = #{vggUrl,jdbcType=VARCHAR},
is_time_limit = #{isTimeLimit,jdbcType=BIT},
effective_time = #{effectiveTime,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
allow_purse = #{allowPurse,jdbcType=TINYINT},
left_level = #{leftLevel,jdbcType=INTEGER},
mark_pic = #{markPic,jdbcType=VARCHAR},
buy_type = #{buyType,jdbcType=INTEGER},
where headwear_id = #{headwearId,jdbcType=INTEGER}
update headwear
set headwear_name = #{headwearName,jdbcType=VARCHAR},
gold_price = #{goldPrice,jdbcType=BIGINT},
seq_no = #{seqNo,jdbcType=INTEGER},
headwear_status = #{headwearStatus,jdbcType=TINYINT},
pic_url = #{picUrl,jdbcType=VARCHAR},
has_gif_pic = #{hasGifPic,jdbcType=BIT},
gif_url = #{gifUrl,jdbcType=VARCHAR},
has_vgg_pic = #{hasVggPic,jdbcType=BIT},
vgg_url = #{vggUrl,jdbcType=VARCHAR},
is_time_limit = #{isTimeLimit,jdbcType=BIT},
effective_time = #{effectiveTime,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
allow_purse = #{allowPurse,jdbcType=TINYINT},
left_level = #{leftLevel,jdbcType=INTEGER},
mark_pic = #{markPic,jdbcType=VARCHAR}
where headwear_id = #{headwearId,jdbcType=INTEGER}
update headwear set del_flag = 2
where headwear_id = #{headwearId,jdbcType=INTEGER}
update headwear set del_flag = 2 where headwear_id in
#{headwearId}