mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
Merge pull request #80 from luckey-ke/master
select为 false 不加入 select 查询范围
This commit is contained in:
commit
198736a970
@ -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;
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user