Skip to content

Commit

Permalink
Merge pull request #774 from mmtyes/master
Browse files Browse the repository at this point in the history
行云数据库分页BUG修复
  • Loading branch information
abel533 committed Oct 9, 2023
2 parents e8a3850 + 1dd9a09 commit 1845b45
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
public class CirroDataDialect extends AbstractHelperDialect {
@Override
public Object processPageParameter(MappedStatement ms, Map<String, Object> paramMap, Page page, BoundSql boundSql, CacheKey pageKey) {
paramMap.put(PAGEPARAMETER_FIRST, page.getEndRow());
paramMap.put(PAGEPARAMETER_SECOND, page.getStartRow());
paramMap.put(PAGEPARAMETER_FIRST, page.getStartRow() + 1);
paramMap.put(PAGEPARAMETER_SECOND, page.getEndRow());
//处理pageKey
pageKey.update(page.getStartRow() + 1);
pageKey.update(page.getEndRow());
pageKey.update(page.getStartRow());
//处理参数配置
handleParameter(boundSql, ms, long.class, long.class);
return paramMap;
Expand Down

0 comments on commit 1845b45

Please sign in to comment.