|
|
|
|
@ -159,6 +159,8 @@ public class ProductQualifiedService { |
|
|
|
|
if (str == null || str.isEmpty()) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
str = str.replaceAll("\\s", ""); |
|
|
|
|
// 精确匹配0-3000的整数或小数
|
|
|
|
|
return str.matches("(3000(\\.0+)?)|([0-2]?\\d{1,3}(\\.\\d+)?)") && |
|
|
|
|
Double.parseDouble(str) <= 3000; |
|
|
|
|
@ -167,6 +169,7 @@ public class ProductQualifiedService { |
|
|
|
|
if (str == null || str.isEmpty()) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
str = str.replaceAll("\\s", ""); |
|
|
|
|
return str.matches("^(\\d+(\\.\\d+)?)(L)$"); |
|
|
|
|
} |
|
|
|
|
public static String matchTexts(List<String> texts) { |
|
|
|
|
|