id,user_id, order_id, coin, algorithm, pool, pool_url, pool_user, worker_id, wallet_address, watch_url, status, start_time, end_time, del
INSERT INTO lease_order_mining (
order_id,
machine_id,
order_item_id,
user_id,
auth_id,
coin,
algorithm,
pool,
pool_url,
pool_user,
worker_id,
wallet_address,
start_time,
end_time
)
VALUES
(
#{item.orderId},
#{item.machineId},
#{item.orderItemId},
#{item.userId},
#{item.authId},
#{item.coin},
#{item.algorithm},
#{item.pool},
#{item.poolUrl},
#{item.poolUser},
#{item.workerId},
#{item.walletAddress},
#{item.startTime},
#{item.endTime})
UPDATE lease_order_mining
SET watch_url = #{clientConfigurationMining.watchUrl}
WHERE user_id = #{userEmail} AND pool = #{clientConfigurationMining.pool}