Commit 565700d3 by s_guodong

update

parent 214a162d
......@@ -51,8 +51,7 @@ public class ValidatorUtil {
}
} else if (type.isAssignableFrom(BigDecimal.class)) {
String bigDecimal = ((BigDecimal) o).toPlainString();
String replace = bigDecimal.replace(".", "");
if (replace.length() > max) {
if (bigDecimal.length() > max) {
return "参数校验错误[" + message + "]";
}
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