Browse Source

1.参数校验器修改

dev_shibei_match
wxz 5 years ago
parent
commit
0feef68a6a
  1. 6
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/validator/ValidatorUtils.java

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

@ -60,14 +60,14 @@ public class ValidatorUtils {
} }
}); });
if (!CollectionUtils.isEmpty(customerShowGroups)) {
// 1.校验客户端显示分组 // 1.校验客户端显示分组
if (!CollectionUtils.isEmpty(customerShowGroups)) {
validate(EpmetErrorCode.CUSTOMER_VALIDATE_ERROR ,object, customerShowGroups.toArray(new Class<?>[customerShowGroups.size()])); validate(EpmetErrorCode.CUSTOMER_VALIDATE_ERROR ,object, customerShowGroups.toArray(new Class<?>[customerShowGroups.size()]));
} else { }
// 2.内部校验分组 // 2.内部校验分组
validate(EpmetErrorCode.INTERNAL_VALIDATE_ERROR ,object, internalGroups.toArray(new Class<?>[customerShowGroups.size()])); validate(EpmetErrorCode.INTERNAL_VALIDATE_ERROR ,object, internalGroups.toArray(new Class<?>[customerShowGroups.size()]));
} }
}
private static Validator getValidator() { private static Validator getValidator() {
Locale.setDefault(LocaleContextHolder.getLocale()); Locale.setDefault(LocaleContextHolder.getLocale());

Loading…
Cancel
Save