From 7aac89af7c8b8a633cb0a0c870e81724b0ec5def Mon Sep 17 00:00:00 2001 From: fwq <582742538@qq.com> Date: 星期五, 03 二月 2023 10:54:23 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/main/java/com/hx/common/service/CommonService.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/hx/common/service/CommonService.java b/src/main/java/com/hx/common/service/CommonService.java index 312786c..81e1adb 100644 --- a/src/main/java/com/hx/common/service/CommonService.java +++ b/src/main/java/com/hx/common/service/CommonService.java @@ -20,6 +20,13 @@ */ <T extends Serializable> int insert(Class<?> mapperClass, T entity); + /**鏂板锛岃繑鍥炰富閿� + * @param mapperClass mapper绫� + * @param entity 瀹炰綋绫� + * @return 鏉℃暟 + */ + <T extends Serializable> int insertById(Class<?> mapperClass, T entity); + /**鏌ヨ鏉℃暟 * @param mapperClass mapper绫� * @param sqlSentence 鏌ヨ鍙傛暟绫� @@ -111,5 +118,10 @@ */ <T extends Serializable> int updateSentence(SqlSentence sqlSentence); + /**鏌ヨ鏉℃暟璇彞锛堝叏璇彞锛� + * @param sqlSentence 鏌ヨ鍙傛暟绫� + * @return 杩斿洖鏉℃暟 + */ + <T extends Serializable> int selectCountSql(SqlSentence sqlSentence); } \ No newline at end of file -- Gitblit v1.8.0