Commit 565700d3 by s_guodong

update

parent 214a162d
...@@ -51,8 +51,7 @@ public class ValidatorUtil { ...@@ -51,8 +51,7 @@ public class ValidatorUtil {
} }
} else if (type.isAssignableFrom(BigDecimal.class)) { } else if (type.isAssignableFrom(BigDecimal.class)) {
String bigDecimal = ((BigDecimal) o).toPlainString(); String bigDecimal = ((BigDecimal) o).toPlainString();
String replace = bigDecimal.replace(".", ""); if (bigDecimal.length() > max) {
if (replace.length() > max) {
return "参数校验错误[" + message + "]"; return "参数校验错误[" + message + "]";
} }
if (f.isAnnotationPresent(DecimalLength.class)) { if (f.isAnnotationPresent(DecimalLength.class)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment