id, logic_card, physics_card, `status`, secret_key, member_id, merchant_id, create_time,
create_by, update_time, update_by, del_flag
delete from pile_auth_card
where id = #{id,jdbcType=INTEGER}
insert into pile_auth_card (logic_card, physics_card, `status`,
secret_key, member_id, merchant_id,
create_time, create_by, update_time,
update_by, del_flag)
values (#{logicCard,jdbcType=VARCHAR}, #{physicsCard,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
#{secretKey,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}, #{delFlag,jdbcType=VARCHAR})
insert into pile_auth_card
logic_card,
physics_card,
`status`,
secret_key,
member_id,
merchant_id,
create_time,
create_by,
update_time,
update_by,
del_flag,
#{logicCard,jdbcType=VARCHAR},
#{physicsCard,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR},
#{secretKey,jdbcType=VARCHAR},
#{memberId,jdbcType=VARCHAR},
#{merchantId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR},
#{delFlag,jdbcType=VARCHAR},
update pile_auth_card
logic_card = #{logicCard,jdbcType=VARCHAR},
physics_card = #{physicsCard,jdbcType=VARCHAR},
`status` = #{status,jdbcType=VARCHAR},
secret_key = #{secretKey,jdbcType=VARCHAR},
member_id = #{memberId,jdbcType=VARCHAR},
merchant_id = #{merchantId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
del_flag = #{delFlag,jdbcType=VARCHAR},
where id = #{id,jdbcType=INTEGER}
update pile_auth_card
set logic_card = #{logicCard,jdbcType=VARCHAR},
physics_card = #{physicsCard,jdbcType=VARCHAR},
`status` = #{status,jdbcType=VARCHAR},
secret_key = #{secretKey,jdbcType=VARCHAR},
member_id = #{memberId,jdbcType=VARCHAR},
merchant_id = #{merchantId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
del_flag = #{delFlag,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
update pile_auth_card
when id = #{item.id,jdbcType=INTEGER} then #{item.logicCard,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.physicsCard,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.secretKey,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.memberId,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.merchantId,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=VARCHAR}
where id in
#{item.id,jdbcType=INTEGER}
insert into pile_auth_card
(logic_card, physics_card, `status`, secret_key, member_id, merchant_id, create_time,
create_by, update_time, update_by, del_flag)
values
(#{item.logicCard,jdbcType=VARCHAR}, #{item.physicsCard,jdbcType=VARCHAR}, #{item.status,jdbcType=VARCHAR},
#{item.secretKey,jdbcType=VARCHAR}, #{item.memberId,jdbcType=VARCHAR}, #{item.merchantId,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP}, #{item.createBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
#{item.updateBy,jdbcType=VARCHAR}, #{item.delFlag,jdbcType=VARCHAR})
insert into pile_auth_card
id,
logic_card,
physics_card,
`status`,
secret_key,
member_id,
merchant_id,
create_time,
create_by,
update_time,
update_by,
del_flag,
values
#{id,jdbcType=INTEGER},
#{logicCard,jdbcType=VARCHAR},
#{physicsCard,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR},
#{secretKey,jdbcType=VARCHAR},
#{memberId,jdbcType=VARCHAR},
#{merchantId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR},
#{delFlag,jdbcType=VARCHAR},
on duplicate key update
id = #{id,jdbcType=INTEGER},
logic_card = #{logicCard,jdbcType=VARCHAR},
physics_card = #{physicsCard,jdbcType=VARCHAR},
`status` = #{status,jdbcType=VARCHAR},
secret_key = #{secretKey,jdbcType=VARCHAR},
member_id = #{memberId,jdbcType=VARCHAR},
merchant_id = #{merchantId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
del_flag = #{delFlag,jdbcType=VARCHAR},
insert into pile_auth_card
id,
logic_card,
physics_card,
`status`,
secret_key,
member_id,
merchant_id,
create_time,
create_by,
update_time,
update_by,
del_flag,
values
#{id,jdbcType=INTEGER},
#{logicCard,jdbcType=VARCHAR},
#{physicsCard,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR},
#{secretKey,jdbcType=VARCHAR},
#{memberId,jdbcType=VARCHAR},
#{merchantId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR},
#{delFlag,jdbcType=VARCHAR},
on duplicate key update
id = #{id,jdbcType=INTEGER},
logic_card = #{logicCard,jdbcType=VARCHAR},
physics_card = #{physicsCard,jdbcType=VARCHAR},
`status` = #{status,jdbcType=VARCHAR},
secret_key = #{secretKey,jdbcType=VARCHAR},
member_id = #{memberId,jdbcType=VARCHAR},
merchant_id = #{merchantId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
del_flag = #{delFlag,jdbcType=VARCHAR},
select id, logic_card, physics_card, status, secret_key, member_id, create_time, create_by, update_time, update_by, del_flag from pile_auth_card
insert into pile_auth_card
logic_card,
physics_card,
status,
secret_key,
member_id,
create_time,
create_by,
update_time,
update_by,
del_flag,
#{logicCard},
#{physicsCard},
#{status},
#{secretKey},
#{memberId},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{delFlag},
update pile_auth_card
logic_card = #{logicCard},
physics_card = #{physicsCard},
status = #{status},
member_id = #{memberId},
secret_key = #{secretKey},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
del_flag = #{delFlag},
where id = #{id}
delete from pile_auth_card where id = #{id}
update pile_auth_card
set status = '9'
where id = #{id,jdbcType=BIGINT}
delete from pile_auth_card where id in
#{id}
update pile_auth_card
set status = '0', member_id = null
where id = #{id,jdbcType=BIGINT}