This commit is contained in:
parent
cf67d47f76
commit
516654585e
|
@ -113,14 +113,14 @@ zheng
|
|||
```
|
||||
<table tableName="xxx" domainObjectName="xxx"></table>
|
||||
```
|
||||
* ** 生成的model和example均已实现Serializable接口,支持分布式 **
|
||||
* ** 生成的mapper.xml的selectByExample方法自动包含分页参数offset和limit,分页示例:**
|
||||
* **生成的model和example均已实现Serializable接口,支持分布式**
|
||||
* **生成的mapper.xml的selectByExample方法自动包含分页参数offset和limit,分页示例:**
|
||||
```
|
||||
CmsArticleExample cmsArticleExample = new CmsArticleExample();
|
||||
cmsArticleExample.setOffset((page - 1) * rows);
|
||||
cmsArticleExample.setLimit(rows);
|
||||
```
|
||||
* ** 已包含抽象类BaseServiceImpl,只需要继承抽象类并传入泛型参数,即可默认实现mapper接口所有方法,特殊需求直接扩展即可 **
|
||||
* **已包含抽象类BaseServiceImpl,只需要继承抽象类并传入泛型参数,即可默认实现mapper接口所有方法,特殊需求直接扩展即可**
|
||||
```
|
||||
public class CmsArticleServiceImpl extends BaseServiceImpl<CmsArticleMapper, CmsArticle, CmsArticleExample>
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue