insert into online_pay( refund_fee,mch_id,order_id,total_fee,open_id,app_id,pay_id,state,message,pay_name,transaction_id ) values ( #{refundFee},#{mchId},#{orderId},#{totalFee},#{openId},#{appId},#{payId},#{state},#{message},#{payName},#{transactionId} ) update online_pay t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.refund_fee= #{refundFee} , t.mch_id= #{mchId} , t.order_id= #{orderId} , t.total_fee= #{totalFee} , t.open_id= #{openId} , t.app_id= #{appId} , t.state= #{state} , t.message= #{message} , t.pay_name= #{payName} , t.transaction_id= #{transactionId} where 1=1 and t.pay_id= #{payId}