This commit is contained in:
parent
e26de4d820
commit
a4009dea90
|
|
@ -181,23 +181,23 @@ Map resultList = new HashMap();
|
|||
|
||||
-  数据查询命名规则
|
||||
|
||||
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层
|
||||
|
||||
-  数据查询命名规则
|
||||
|
||||
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作前缀。
|
||||
|
||||
## 接口管理规范
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue