From c6eec82a790b6dc9c1d74556a52cd891a2017e8c Mon Sep 17 00:00:00 2001 From: fhx <308050795@qq.com> Date: 星期一, 19 七月 2021 15:21:29 +0800 Subject: [PATCH] 1.修改区分Excel不同格式读取数据问题 --- 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