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