update mall_goods set stock = stock - #{cnt}, volume = volume + #{cnt} where id=#{id} and stock - #{cnt} = ]]> 0 update mall_goods set stock = stock + #{cnt}, volume = volume - #{cnt} where id=#{id} and volume - #{cnt} = ]]> 0