refactor: 优化部分错误提示信息和代码注释

This commit is contained in:
2025-03-18 20:42:46 +08:00
parent a6fb65f97e
commit c9c7c34506
8 changed files with 26 additions and 25 deletions

View File

@@ -92,7 +92,7 @@ public class QueryWrapperHelper {
if (sort != null && sort.isSorted()) {
for (Sort.Order order : sort) {
String field = CharSequenceUtil.toUnderlineCase(order.getProperty());
ValidationUtils.throwIf(SqlInjectionUtils.check(field), "排序字段包含非法字符");
ValidationUtils.throwIf(SqlInjectionUtils.check(field), "排序字段包含无效字符");
queryWrapper.orderBy(field, order.isAscending());
}
}