insert into transaction_log( src_ip,service_code,cost_time,ip,app_id,log_id,state,user_id,transaction_id,timestamp ) values ( #{srcIp},#{serviceCode},#{costTime},#{ip},#{appId},#{logId},#{state},#{userId},#{transactionId},#{timestamp} ) update transaction_log t t.b_id = #{newBId}, t.src_ip= #{srcIp}, t.service_code= #{serviceCode}, t.cost_time= #{costTime}, t.ip= #{ip}, t.app_id= #{appId}, t.state= #{state}, t.user_id= #{userId}, t.transaction_id= #{transactionId}, t.timestamp= #{timestamp}, where 1=1 and t.log_id= #{logId}