select ac.id, ac.user_id, ac.account_id, ac.serial_num, ac.card_nature,
ac.card_type, ac.card_status, ac.deposit,ac.product_cost,
ac.validity_date, ac.create_by, ac.create_time, ac.update_by,ac.update_time, su.nick_name
from account_card ac
left join sys_user su on su.user_id = ac.user_id
insert into account_card
user_id,
account_id,
serial_num,
card_nature,
card_type,
card_status,
deposit,
product_cost,
validity_date,
create_by,
create_time,
update_by,
update_time,
#{userId},
#{accountId},
#{serialNum},
#{cardNature},
#{cardType},
#{cardStatus},
#{deposit},
#{productCost},
#{validityDate},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update account_card
user_id = #{userId},
account_id = #{accountId},
serial_num = #{serialNum},
card_nature = #{cardNature},
card_type = #{cardType},
card_status = #{cardStatus},
deposit = #{deposit},
product_cost = #{productCost},
validity_date = #{validityDate},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where account_id = #{accountId}
delete from account_card where id = #{id}
delete from account_card where id in
#{id}