id, deleted, created, modified, business_type, business_id, should_amount, real_amount, remark update order_fund set real_amount = (ifnull(real_amount,0) + #{thisTimeAmount}) where id = #{id} update order_fund set real_amount = (ifnull(real_amount,0) + #{thisTimeAmount}) where order_id = #{orderId} and deleted = 0 UPDATE order_fund SET discount = order_fund.real_amount / order_fund.should_amount WHERE id = #{orderFundId}