DataSearchLogDao extends BaseDao { public List<DataSearchLog> findDataSearchLogList(Integer limit) throws SQLException { String sql = "select id, ip, user_no, request_type, request, success, result, inserttime from data_search_log order by id desc limit " + limit; return this.queryBySql(sql, DataSearchLog.class); }  Long insertDataSearchLog(DataSearchLog dataSearchLog); Long getTotalCount(Paging<DataSearchLogView> paging); List<DataSearchLogView> findLogPageList(Paging<DataSearchLogView> paging); List<DataSearchLog> findDataSearchLogList(Integer limit);  }
@Test public void findDataSearchLogList() throws Exception { List<DataSearchLog> list = dataSearchLogDao.findDataSearchLogList(10); System.out.println("findDataSearchLogList :-------> " + list); Assert.assertTrue(list.size() > 0); }