id, member_id, wallet_code, `type`, sub_type, amount, category, related_order_code,
before_amount, after_amount, remark, create_by, create_time
delete from member_wallet_log
where id = #{id,jdbcType=INTEGER}
insert into member_wallet_log (member_id, wallet_code, `type`,
sub_type, amount, category,
related_order_code, before_amount, after_amount,
remark, create_by, create_time
)
values (#{memberId,jdbcType=VARCHAR}, #{walletCode,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
#{subType,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{category,jdbcType=CHAR},
#{relatedOrderCode,jdbcType=VARCHAR}, #{beforeAmount,jdbcType=DECIMAL}, #{afterAmount,jdbcType=DECIMAL},
#{remark,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
)
insert into member_wallet_log
member_id,
wallet_code,
`type`,
sub_type,
amount,
category,
related_order_code,
before_amount,
after_amount,
remark,
create_by,
create_time,
#{memberId,jdbcType=VARCHAR},
#{walletCode,jdbcType=VARCHAR},
#{type,jdbcType=VARCHAR},
#{subType,jdbcType=VARCHAR},
#{amount,jdbcType=DECIMAL},
#{category,jdbcType=CHAR},
#{relatedOrderCode,jdbcType=VARCHAR},
#{beforeAmount,jdbcType=DECIMAL},
#{afterAmount,jdbcType=DECIMAL},
#{remark,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
update member_wallet_log
member_id = #{memberId,jdbcType=VARCHAR},
wallet_code = #{walletCode,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
sub_type = #{subType,jdbcType=VARCHAR},
amount = #{amount,jdbcType=DECIMAL},
category = #{category,jdbcType=CHAR},
related_order_code = #{relatedOrderCode,jdbcType=VARCHAR},
before_amount = #{beforeAmount,jdbcType=DECIMAL},
after_amount = #{afterAmount,jdbcType=DECIMAL},
remark = #{remark,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=INTEGER}
update member_wallet_log
set member_id = #{memberId,jdbcType=VARCHAR},
wallet_code = #{walletCode,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
sub_type = #{subType,jdbcType=VARCHAR},
amount = #{amount,jdbcType=DECIMAL},
category = #{category,jdbcType=CHAR},
related_order_code = #{relatedOrderCode,jdbcType=VARCHAR},
before_amount = #{beforeAmount,jdbcType=DECIMAL},
after_amount = #{afterAmount,jdbcType=DECIMAL},
remark = #{remark,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
update member_wallet_log
when id = #{item.id,jdbcType=INTEGER} then #{item.memberId,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.walletCode,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.type,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.subType,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.amount,jdbcType=DECIMAL}
when id = #{item.id,jdbcType=INTEGER} then #{item.category,jdbcType=CHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.relatedOrderCode,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.beforeAmount,jdbcType=DECIMAL}
when id = #{item.id,jdbcType=INTEGER} then #{item.afterAmount,jdbcType=DECIMAL}
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
where id in
#{item.id,jdbcType=INTEGER}
insert into member_wallet_log
(member_id, wallet_code, `type`, sub_type, amount, category, related_order_code,
before_amount, after_amount, remark, create_by, create_time)
values
(#{item.memberId,jdbcType=VARCHAR}, #{item.walletCode,jdbcType=VARCHAR}, #{item.type,jdbcType=VARCHAR},
#{item.subType,jdbcType=VARCHAR}, #{item.amount,jdbcType=DECIMAL}, #{item.category,jdbcType=CHAR},
#{item.relatedOrderCode,jdbcType=VARCHAR}, #{item.beforeAmount,jdbcType=DECIMAL},
#{item.afterAmount,jdbcType=DECIMAL}, #{item.remark,jdbcType=VARCHAR}, #{item.createBy,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP})
insert into member_wallet_log
id,
member_id,
wallet_code,
`type`,
sub_type,
amount,
category,
related_order_code,
before_amount,
after_amount,
remark,
create_by,
create_time,
values
#{id,jdbcType=INTEGER},
#{memberId,jdbcType=VARCHAR},
#{walletCode,jdbcType=VARCHAR},
#{type,jdbcType=VARCHAR},
#{subType,jdbcType=VARCHAR},
#{amount,jdbcType=DECIMAL},
#{category,jdbcType=CHAR},
#{relatedOrderCode,jdbcType=VARCHAR},
#{beforeAmount,jdbcType=DECIMAL},
#{afterAmount,jdbcType=DECIMAL},
#{remark,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
on duplicate key update
id = #{id,jdbcType=INTEGER},
member_id = #{memberId,jdbcType=VARCHAR},
wallet_code = #{walletCode,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
sub_type = #{subType,jdbcType=VARCHAR},
amount = #{amount,jdbcType=DECIMAL},
category = #{category,jdbcType=CHAR},
related_order_code = #{relatedOrderCode,jdbcType=VARCHAR},
before_amount = #{beforeAmount,jdbcType=DECIMAL},
after_amount = #{afterAmount,jdbcType=DECIMAL},
remark = #{remark,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
insert into member_wallet_log
id,
member_id,
wallet_code,
`type`,
sub_type,
amount,
category,
related_order_code,
before_amount,
after_amount,
remark,
create_by,
create_time,
values
#{id,jdbcType=INTEGER},
#{memberId,jdbcType=VARCHAR},
#{walletCode,jdbcType=VARCHAR},
#{type,jdbcType=VARCHAR},
#{subType,jdbcType=VARCHAR},
#{amount,jdbcType=DECIMAL},
#{category,jdbcType=CHAR},
#{relatedOrderCode,jdbcType=VARCHAR},
#{beforeAmount,jdbcType=DECIMAL},
#{afterAmount,jdbcType=DECIMAL},
#{remark,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
on duplicate key update
id = #{id,jdbcType=INTEGER},
member_id = #{memberId,jdbcType=VARCHAR},
wallet_code = #{walletCode,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
sub_type = #{subType,jdbcType=VARCHAR},
amount = #{amount,jdbcType=DECIMAL},
category = #{category,jdbcType=CHAR},
related_order_code = #{relatedOrderCode,jdbcType=VARCHAR},
before_amount = #{beforeAmount,jdbcType=DECIMAL},
after_amount = #{afterAmount,jdbcType=DECIMAL},
remark = #{remark,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},