doc: 完善数据缓存文档。

This commit is contained in:
Suomm 2023-06-03 18:12:37 +08:00
parent 0e8f875673
commit 47359705a4

View File

@ -166,9 +166,9 @@ public class AccountServiceImpl extends CacheableServiceImpl<MyAccountMapper, Ac
} }
@Override @Override
@Cacheable(key = "#root.methodName + ':' + #query.toSQL()") @Cacheable(key = "#root.methodName + ':' + #page.getPageSize() + ':' + #page.getPageNumber() + ':' + #query.toSQL()")
public Page<Account> page(Page<Account> page, QueryWrapper query) { public <R> Page<R> pageAs(Page<R> page, QueryWrapper query, Class<R> asType) {
return super.page(page, query); return super.pageAs(page, query, asType);
} }
} }