| | |
| | | /**更新sql语句(全语句)*/ |
| | | @Override |
| | | public <T extends Serializable> int updateSentence(SqlSentence sqlSentence) { |
| | | return sqlSessionFactory.openSession().delete(getStatement(CommonMapper.class,"updateSentence"),sqlSentence); |
| | | return sqlSessionFactory.openSession().update(getStatement(CommonMapper.class,"updateSentence"),sqlSentence); |
| | | } |
| | | |
| | | /**查询条数(全语句)*/ |
| | | @Override |
| | | public <T extends Serializable> int selectCountSql(SqlSentence sqlSentence) { |
| | | return sqlSessionFactory.openSession().delete(getStatement(CommonMapper.class,"selectCountSql"),sqlSentence); |
| | | return sqlSessionFactory.openSession().selectOne(getStatement(CommonMapper.class,"selectCountSql"),sqlSentence); |
| | | } |
| | | |
| | | } |