From 591b9669678180c4ef9171169a88f69df84496e7 Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期三, 06 四月 2022 12:03:44 +0800 Subject: [PATCH] 优化加密初始化方法 --- src/main/java/com/hx/common/service/impl/CommonServiceImpl.java | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/hx/common/service/impl/CommonServiceImpl.java b/src/main/java/com/hx/common/service/impl/CommonServiceImpl.java index 7d911eb..ec5b0f4 100644 --- a/src/main/java/com/hx/common/service/impl/CommonServiceImpl.java +++ b/src/main/java/com/hx/common/service/impl/CommonServiceImpl.java @@ -31,6 +31,12 @@ return commonDao.selectCount(mapperClass,sqlSentence); } + /**鑾峰彇鏉℃暟*/ + @Override + public <T extends Serializable> int selectCountSql(Class<?> mapperClass,SqlSentence sqlSentence) { + return commonDao.selectCountSql(mapperClass,sqlSentence); + } + /**鑾峰彇鍒楄〃*/ @Override public <T extends Serializable> List<T> selectList(Class<?> mapperClass, SqlSentence sqlSentence) { @@ -91,4 +97,18 @@ return commonDao.deleteById(mapperClass,object); } + + /**鏇存柊sql璇彞锛堝叏璇彞锛�*/ + @Override + public <T extends Serializable> int updateSentence(SqlSentence sqlSentence) { + return commonDao.updateSentence(sqlSentence); + } + + /**鏇存柊sql璇彞锛堝叏璇彞锛�*/ + @Override + public <T extends Serializable> int selectCountSql(SqlSentence sqlSentence) { + return commonDao.selectCountSql(sqlSentence); + } + + } -- Gitblit v1.8.0