mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
merge PR[80]
This commit is contained in:
parent
198736a970
commit
57715b11a1
@ -1,5 +1,6 @@
|
|||||||
package com.github.yulichang.toolkit.support;
|
package com.github.yulichang.toolkit.support;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.TableFieldInfo;
|
||||||
import com.baomidou.mybatisplus.core.metadata.TableInfo;
|
import com.baomidou.mybatisplus.core.metadata.TableInfo;
|
||||||
import com.github.yulichang.config.ConfigProperties;
|
import com.github.yulichang.config.ConfigProperties;
|
||||||
import com.github.yulichang.toolkit.FieldStringMap;
|
import com.github.yulichang.toolkit.FieldStringMap;
|
||||||
@ -34,7 +35,9 @@ public class ColumnCache {
|
|||||||
list.add(new SelectCache(clazz, true, tableInfo.getKeyColumn(), tableInfo.getKeyType(),
|
list.add(new SelectCache(clazz, true, tableInfo.getKeyColumn(), tableInfo.getKeyType(),
|
||||||
tableInfo.getKeyProperty(), null));
|
tableInfo.getKeyProperty(), null));
|
||||||
}
|
}
|
||||||
list.addAll(tableInfo.getFieldList().stream().filter(TableFieldInfo::isSelect).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;
|
return list;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user