gift_id, gift_name, gold_price, seq_no, noble_id, noble_name, is_noble_gift, gift_type,
gift_status, pic_url, has_gif_pic, gif_url, has_vgg_pic, vgg_url, is_latest, is_time_limit,
has_effect, start_valid_time, end_valid_time, create_time, is_express_gift, is_can_give
insert into gift (gift_id, gift_name, gold_price,
seq_no, noble_id, noble_name,
is_noble_gift, gift_type, gift_status,
pic_url, has_gif_pic, gif_url,
has_vgg_pic, vgg_url, is_latest,
is_time_limit, has_effect, start_valid_time,
end_valid_time, create_time, is_express_gift,
is_can_give)
values (#{giftId,jdbcType=INTEGER}, #{giftName,jdbcType=VARCHAR}, #{goldPrice,jdbcType=BIGINT},
#{seqNo,jdbcType=INTEGER}, #{nobleId,jdbcType=INTEGER}, #{nobleName,jdbcType=VARCHAR},
#{isNobleGift,jdbcType=BIT}, #{giftType,jdbcType=TINYINT}, #{giftStatus,jdbcType=TINYINT},
#{picUrl,jdbcType=VARCHAR}, #{hasGifPic,jdbcType=BIT}, #{gifUrl,jdbcType=VARCHAR},
#{hasVggPic,jdbcType=BIT}, #{vggUrl,jdbcType=VARCHAR}, #{isLatest,jdbcType=BIT},
#{isTimeLimit,jdbcType=BIT}, #{hasEffect,jdbcType=BIT}, #{startValidTime,jdbcType=TIMESTAMP},
#{endValidTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{isExpressGift,jdbcType=BIT},
#{isCanGive,jdbcType=BIT})
insert into gift
gift_id,
gift_name,
gold_price,
seq_no,
noble_id,
noble_name,
is_noble_gift,
gift_type,
gift_status,
pic_url,
has_gif_pic,
gif_url,
has_vgg_pic,
vgg_url,
is_latest,
is_time_limit,
has_effect,
start_valid_time,
end_valid_time,
create_time,
is_express_gift,
is_can_give,
#{giftId,jdbcType=INTEGER},
#{giftName,jdbcType=VARCHAR},
#{goldPrice,jdbcType=BIGINT},
#{seqNo,jdbcType=INTEGER},
#{nobleId,jdbcType=INTEGER},
#{nobleName,jdbcType=VARCHAR},
#{isNobleGift,jdbcType=BIT},
#{giftType,jdbcType=TINYINT},
#{giftStatus,jdbcType=TINYINT},
#{picUrl,jdbcType=VARCHAR},
#{hasGifPic,jdbcType=BIT},
#{gifUrl,jdbcType=VARCHAR},
#{hasVggPic,jdbcType=BIT},
#{vggUrl,jdbcType=VARCHAR},
#{isLatest,jdbcType=BIT},
#{isTimeLimit,jdbcType=BIT},
#{hasEffect,jdbcType=BIT},
#{startValidTime,jdbcType=TIMESTAMP},
#{endValidTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
#{isExpressGift,jdbcType=BIT},
#{isCanGive,jdbcType=BIT},
update gift
gift_name = #{giftName,jdbcType=VARCHAR},
gold_price = #{goldPrice,jdbcType=BIGINT},
seq_no = #{seqNo,jdbcType=INTEGER},
noble_id = #{nobleId,jdbcType=INTEGER},
noble_name = #{nobleName,jdbcType=VARCHAR},
is_noble_gift = #{isNobleGift,jdbcType=BIT},
gift_type = #{giftType,jdbcType=TINYINT},
gift_status = #{giftStatus,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_latest = #{isLatest,jdbcType=BIT},
is_time_limit = #{isTimeLimit,jdbcType=BIT},
has_effect = #{hasEffect,jdbcType=BIT},
start_valid_time = #{startValidTime,jdbcType=TIMESTAMP},
end_valid_time = #{endValidTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
is_express_gift = #{isExpressGift,jdbcType=BIT},
is_can_give = #{isCanGive,jdbcType=BIT},
where gift_id = #{giftId,jdbcType=INTEGER}
update gift
set gift_name = #{giftName,jdbcType=VARCHAR},
gold_price = #{goldPrice,jdbcType=BIGINT},
seq_no = #{seqNo,jdbcType=INTEGER},
noble_id = #{nobleId,jdbcType=INTEGER},
noble_name = #{nobleName,jdbcType=VARCHAR},
is_noble_gift = #{isNobleGift,jdbcType=BIT},
gift_type = #{giftType,jdbcType=TINYINT},
gift_status = #{giftStatus,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_latest = #{isLatest,jdbcType=BIT},
is_time_limit = #{isTimeLimit,jdbcType=BIT},
has_effect = #{hasEffect,jdbcType=BIT},
start_valid_time = #{startValidTime,jdbcType=TIMESTAMP},
end_valid_time = #{endValidTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
is_express_gift = #{isExpressGift,jdbcType=BIT},
is_can_give = #{isCanGive,jdbcType=BIT}
where gift_id = #{giftId,jdbcType=INTEGER}
update gift set del_flag = 2 , gift_status = 2 where gift_id in
#{giftId}
update gift set , gift_status = 2 del_flag = 2
where gift_id = #{giftId,jdbcType=INTEGER}