From 8bc3c99b8afeb76573bafa7a7ec51b551f500662 Mon Sep 17 00:00:00 2001
From: ChenJiaHe <763432473@qq.com>
Date: 星期六, 12 十二月 2020 17:05:42 +0800
Subject: [PATCH] 优化

---
 src/main/java/com/hx/common/dao/CommonDao.java |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/hx/common/dao/CommonDao.java b/src/main/java/com/hx/common/dao/CommonDao.java
index 44f7419..3a4ccad 100644
--- a/src/main/java/com/hx/common/dao/CommonDao.java
+++ b/src/main/java/com/hx/common/dao/CommonDao.java
@@ -1,5 +1,4 @@
 package com.hx.common.dao;
-import com.hx.mybatisTool.SqlParam;
 import com.hx.mybatisTool.SqlSentence;
 
 import java.io.Serializable;
@@ -23,10 +22,17 @@
 
 	/**鏌ヨ鏉℃暟
 	 * @param mapperClass mapper绫�
-	 * @param sqlParam  鏌ヨ鍙傛暟绫�
+	 * @param sqlSentence  鏌ヨ鍙傛暟绫�
 	 * @return 杩斿洖鏉℃暟
 	 */
-	<T extends Serializable> int selectCount(Class<?> mapperClass, SqlParam sqlParam);
+	<T extends Serializable> int selectCount(Class<?> mapperClass, SqlSentence sqlSentence);
+
+	/**鏌ヨ鏉℃暟
+	 * @param mapperClass mapper绫�
+	 * @param sqlSentence  鏌ヨ鍙傛暟绫�
+	 * @return 杩斿洖鏉℃暟
+	 */
+	<T extends Serializable> int selectCountSql(Class<?> mapperClass, SqlSentence sqlSentence);
 
 	/**鏌ヨ鍒楄〃锛岃繑鍥炲疄浣撶被鐨凩ist
 	 * @param mapperClass mapper绫�
@@ -72,10 +78,10 @@
 
 	/**鏇存柊锛岃繑鍥炴洿鏂版暟閲�
 	 * @param mapperClass mapper绫�
-	 * @param sqlParam 鏌ヨ鍙傛暟绫�
+	 * @param sqlSentence 鏌ヨ鍙傛暟绫�
 	 * @return 杩斿洖鏉℃暟
 	 */
-	<T extends Serializable> int updateWhere(Class<?> mapperClass, SqlParam sqlParam);
+	<T extends Serializable> int updateWhere(Class<?> mapperClass, SqlSentence sqlSentence);
 
 	/**鏇存柊锛岃繑鍥炴洿鏂版暟閲�
 	 * @param mapperClass mapper绫�
@@ -86,10 +92,10 @@
 
 	/**鍒犻櫎锛岃繑鍥炲垹闄ゆ暟閲�
 	 * @param mapperClass mapper绫�
-	 * @param sqlParam 鏌ヨ鍙傛暟绫�
+	 * @param sqlSentence 鏌ヨ鍙傛暟绫�
 	 * @return 杩斿洖鏉℃暟
 	 */
-	<T extends Serializable> int deleteWhere(Class<?> mapperClass, SqlParam sqlParam);
+	<T extends Serializable> int deleteWhere(Class<?> mapperClass, SqlSentence sqlSentence);
 
 	/**鍒犻櫎锛岃繑鍥炲垹闄ゆ暟閲�
 	 * @param mapperClass mapper绫�

--
Gitblit v1.8.0