refactor: 优化findColumn方法

This commit is contained in:
zhouhao
2025-11-21 12:40:25 +08:00
parent 2d2ce253ec
commit 87e9ee0343

View File

@@ -122,7 +122,8 @@ public interface QueryAnalyzer {
for (Column col : columnList) {
if (Objects.equals(col.name, name)
|| Objects.equals(col.name, snake)
|| Objects.equals(QueryHelperUtils.toSnake(col.alias), snake)) {
|| Objects.equals(QueryHelperUtils.toSnake(col.alias), snake)
|| Objects.equals(col.getFullName(), snake)) {
return Optional.of(col);
}
}