Skip to content

Commit

Permalink
增加注释
Browse files Browse the repository at this point in the history
  • Loading branch information
chenrenfei committed Mar 31, 2018
1 parent 4255aaf commit bbff458
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ public void doConnection(Connection conn, Integer dbType, String dialect) throws
queryResult.setPageSize(new Long(totalRecord).intValue());
queryResult.setRecordCount(totalRecord);
} else {
// 实际开始页(页数据超出总记录,则从第一页重新开始)
// 实际开始页(页数据超出总记录,则从第一页重新开始,相反如继续按指定的页查询则记录为空,且实际页号也不存在)
long realStartPage = (pageNo * pageSize >= (recordCnt + pageSize)) ? 1 : pageNo;
queryResult = getDialectSqlWrapper(dbType).findPageBySql(sqlToyContext,
realSqlToyConfig, queryExecutor, realStartPage, pageSize, conn);
Expand Down

0 comments on commit bbff458

Please sign in to comment.