Browse Source

1.参数校验器修改

master
wxz 5 years ago
parent
commit
ee540c731a
  1. 4
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/validator/ValidatorUtils.java

4
epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/validator/ValidatorUtils.java

@ -66,7 +66,9 @@ public class ValidatorUtils {
}
// 2.内部校验分组
validate(EpmetErrorCode.INTERNAL_VALIDATE_ERROR ,object, internalGroups.toArray(new Class<?>[customerShowGroups.size()]));
if (!CollectionUtils.isEmpty(internalGroups)) {
validate(EpmetErrorCode.INTERNAL_VALIDATE_ERROR, object, internalGroups.toArray(new Class<?>[internalGroups.size()]));
}
}
private static Validator getValidator() {

Loading…
Cancel
Save