Merge pull request #80 from luckey-ke/master

select为 false 不加入 select 查询范围
This commit is contained in:
yulichang 2024-04-16 17:00:43 +08:00 committed by GitHub
commit 198736a970
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,8 +34,7 @@ public class ColumnCache {
list.add(new SelectCache(clazz, true, tableInfo.getKeyColumn(), tableInfo.getKeyType(),
tableInfo.getKeyProperty(), null));
}
list.addAll(tableInfo.getFieldList().stream().map(f -> new SelectCache(clazz, false, f.getColumn(),
f.getPropertyType(), f.getProperty(), f)).collect(Collectors.toList()));
list.addAll(tableInfo.getFieldList().stream().filter(TableFieldInfo::isSelect).map(f -> new SelectCache(clazz, false, f.getColumn(), f.getPropertyType(), f.getProperty(), f)).collect(Collectors.toList()));
return list;
});
}