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/service/impl/CommonDaoImpl.java |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/hx/common/service/impl/CommonDaoImpl.java b/src/main/java/com/hx/common/service/impl/CommonDaoImpl.java
index 388fcd3..16ef362 100644
--- a/src/main/java/com/hx/common/service/impl/CommonDaoImpl.java
+++ b/src/main/java/com/hx/common/service/impl/CommonDaoImpl.java
@@ -28,12 +28,20 @@
         return sqlSessionFactory.openSession().insert(getStatement(mapperClass,"insert"),entity);
     }
 
-    /**鑾峰彇鏉℃暟*/
+    /**鑾峰彇鏉℃暟
+     * @return*/
     @Override
-    public <T extends Serializable> int selectCount(Class<?> mapperClass,SqlSentence sqlSentence) {
+    public <T extends Serializable> int selectCount(Class<?> mapperClass, SqlSentence sqlSentence) {
         return sqlSessionFactory.openSession().selectOne(getStatement(mapperClass,"selectCount"),sqlSentence);
     }
 
+    /**鑾峰彇鏉℃暟
+     * @return*/
+    @Override
+    public <T extends Serializable> int selectCountSql(Class<?> mapperClass, SqlSentence sqlSentence) {
+        return sqlSessionFactory.openSession().selectOne(getStatement(mapperClass,"selectCountSql"),sqlSentence);
+    }
+
     /**鑾峰彇鍒楄〃*/
     @Override
     public <T extends Serializable> List<T> selectList(Class<?> mapperClass, SqlSentence sqlSentence) {

--
Gitblit v1.8.0