select account0_.id as id1_0_0_, account0_.balance as balance2_0_0_, account0_.mobile as mobile3_0_0_, account0_.nick_name as nick_nam4_0_0_, account0_.version as version5_0_0_ from account account0_ where account0_.id=? insert into trade_hist (acc_id, account_id, amount, curr_date, note, type, version, id) values (?, ?, ?, ?, ?, ?, ?, ?) update account set balance=?, mobile=?, nick_name=?, version=? where id=? and version=?