From bd893ce64aad180590dd80d000a3e7d3fc125872 Mon Sep 17 00:00:00 2001 From: lroyia <814876716@qq.com> Date: Tue, 28 Dec 2021 15:24:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E9=83=A8=E5=88=86=E9=AB=98?= =?UTF-8?q?=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 技术规范/Java后端开发规范.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/技术规范/Java后端开发规范.md b/技术规范/Java后端开发规范.md index dc6876e..4592580 100644 --- a/技术规范/Java后端开发规范.md +++ b/技术规范/Java后端开发规范.md @@ -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`作前缀。 ## 接口管理规范