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
@Cacheable(key = "#root.methodName + ':' + #query.toSQL()")
public Page<Account> page(Page<Account> page, QueryWrapper query) {
return super.page(page, query);
@Cacheable(key = "#root.methodName + ':' + #page.getPageSize() + ':' + #page.getPageNumber() + ':' + #query.toSQL()")
public <R> Page<R> pageAs(Page<R> page, QueryWrapper query, Class<R> asType) {
return super.pageAs(page, query, asType);
}
}