解决商品导入的时候条码长度限制过短的bug

This commit is contained in:
神话
2022-04-28 23:23:08 +08:00
parent a9fa72ccef
commit 768b9227e5
2 changed files with 4 additions and 4 deletions

View File

@@ -280,11 +280,11 @@ public class StringUtil {
* @param value
* @return
*/
public static boolean isPositiveInteger(Object value) {
public static boolean isPositiveLong(Object value) {
if(value!=null) {
String str = value.toString();
if(isNotEmpty(str)) {
if((str.matches("[0-9]+"))&&(Integer.parseInt(str)>0)) {
if((str.matches("[0-9]+"))&&(Long.parseLong(str)>0)) {
return true;
} else {
return false;