id, uid, bank_card, bank_card_name, open_bank_code, is_use, create_time
delete from user_bank_card
where id = #{id,jdbcType=INTEGER}
SELECT LAST_INSERT_ID()
insert into user_bank_card (uid, bank_card, bank_card_name,
open_bank_code, is_use, create_time
)
values (#{uid,jdbcType=BIGINT}, #{bankCard,jdbcType=VARCHAR}, #{bankCardName,jdbcType=VARCHAR},
#{openBankCode,jdbcType=VARCHAR}, #{isUse,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}
)
SELECT LAST_INSERT_ID()
insert into user_bank_card
uid,
bank_card,
bank_card_name,
open_bank_code,
is_use,
create_time,
#{uid,jdbcType=BIGINT},
#{bankCard,jdbcType=VARCHAR},
#{bankCardName,jdbcType=VARCHAR},
#{openBankCode,jdbcType=VARCHAR},
#{isUse,jdbcType=BIT},
#{createTime,jdbcType=TIMESTAMP},
update user_bank_card
uid = #{uid,jdbcType=BIGINT},
bank_card = #{bankCard,jdbcType=VARCHAR},
bank_card_name = #{bankCardName,jdbcType=VARCHAR},
open_bank_code = #{openBankCode,jdbcType=VARCHAR},
is_use = #{isUse,jdbcType=BIT},
create_time = #{createTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=INTEGER}
update user_bank_card
set uid = #{uid,jdbcType=BIGINT},
bank_card = #{bankCard,jdbcType=VARCHAR},
bank_card_name = #{bankCardName,jdbcType=VARCHAR},
open_bank_code = #{openBankCode,jdbcType=VARCHAR},
is_use = #{isUse,jdbcType=BIT},
create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
update user_bank_card set is_use = #{isUse} where uid = #{uid}