This commit is contained in:
黎润豪 2021-12-28 15:22:52 +08:00
parent e26de4d820
commit a4009dea90
1 changed files with 12 additions and 12 deletions

View File

@ -181,23 +181,23 @@ Map resultList = new HashMap();
- ![推荐](../img/icon/推荐.png) 数据查询命名规则
a)获取单个对象的方法用get作前缀。
b)获取多个对象的方法用list作前缀。
c)获取统计值的方法用count作前缀。
d)插入的方法用save作前缀。
e)删除的方法用remove作前缀。
f)修改的方法用modify/update作前缀。
a)获取单个对象的方法用get作前缀。
b)获取多个对象的方法用list作前缀。
c)获取统计值的方法用count作前缀。
d)插入的方法用save作前缀。
e)删除的方法用remove作前缀。
f)修改的方法用modify/update作前缀。
### Dao/Mapper层
- ![推荐](../img/icon/推荐.png) 数据查询命名规则
a)获取单个对象的方法用select作前缀。
b)获取多个对象的方法用select作前缀List作后续selectXxxList。
c)获取统计值的方法用count作前缀。
d)插入的方法用insert作前缀。
e)删除的方法用delete作前缀。
f)修改的方法用update作前缀。
a)获取单个对象的方法用select作前缀。
b)获取多个对象的方法用select作前缀List作后续selectXxxList。
c)获取统计值的方法用count作前缀。
d)插入的方法用insert作前缀。
e)删除的方法用delete作前缀。
f)修改的方法用update作前缀。
## 接口管理规范