id,
merchant_id,
community_id,
(select vm.name from volunteer_merchant as vm where volunteer_merchant_withdraw.merchant_id=vm.id) as merchantName,
withdraw_integral,
creation_time,
update_time,
dispose_time,
dispose_type,
is_delete
insert into volunteer_merchant_withdraw
id,
merchant_id,
community_id,
withdraw_integral,
dispose_time,
dispose_type,
is_delete,
creation_time
values
#{item.id},
#{item.merchantId},
#{item.communityId},
#{item.withdrawIntegral},
#{item.disposeTime},
#{item.disposeType},
#{item.isDelete},
sysdate()
update volunteer_merchant_withdraw
id=#{item.id},
merchant_id=#{item.merchantId},
community_id=#{item.communityId},
withdraw_integral=#{item.withdrawIntegral},
dispose_time=#{item.disposeTime},
dispose_type=#{item.disposeType},
is_delete=#{item.isDelete},
update_time=sysdate()
where id = #{item.id}
update volunteer_merchant_withdraw set is_delete=1 where id=#{id}
update volunteer_merchant_withdraw set dispose_time=sysdate(),dispose_type='1' where id=#{id}