Positive solutions of a class of semilinear equations with absorption and schr\"odinger equations