-- 回滚：删除补建的空钱包（仅删除余额为0且无交易记录的钱包）
DELETE FROM tb_asset_wallet
WHERE balance = 0
  AND frozen_balance = 0
  AND deleted_at IS NULL
  AND id NOT IN (
    SELECT DISTINCT asset_wallet_id FROM tb_asset_wallet_transaction WHERE deleted_at IS NULL
  );
