src/main/java/com/zy/common/web/BaseController.java
@@ -157,4 +157,14 @@ } } } public static boolean isNumber(String str){ for (int i = str.length();--i>=0;){ if (!Character.isDigit(str.charAt(i))){ return false; } } return true; } }