mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
优化
This commit is contained in:
parent
a8a790e3ac
commit
a229521dd7
@ -87,7 +87,12 @@ public class MPJInterceptor implements Interceptor {
|
||||
String id = ms.getId() + StringPool.DASH + (resultType.getName().replaceAll("\\.", StringPool.DASH));
|
||||
if (ew instanceof MPJLambdaWrapper) {
|
||||
MPJLambdaWrapper wrapper = (MPJLambdaWrapper) ew;
|
||||
wrapper.setEntityClass(MPJTableMapperHelper.getEntity(getEntity(ms.getId())));
|
||||
if (wrapper.getEntityClass() == null) {
|
||||
wrapper.setEntityClass(MPJTableMapperHelper.getEntity(getEntity(ms.getId())));
|
||||
}
|
||||
if (wrapper.getSelectColumns().isEmpty() && wrapper.getEntityClass() != null) {
|
||||
wrapper.selectAll(wrapper.getEntityClass());
|
||||
}
|
||||
//TODO 重构缓存 -> 根据sql缓存
|
||||
//不走缓存
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user