Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[功能改进]: 分页参数 IPage 支持在 Map 参数中生效 #6511

Open
3 tasks done
loren-coding opened this issue Sep 24, 2024 · 1 comment
Open
3 tasks done

Comments

@loren-coding
Copy link

loren-coding commented Sep 24, 2024

确认

  • 我的版本是最新版本, 我的版本号与 version 相同, 并且项目里无依赖冲突
  • 我已经在 issue 中搜索过, 确认问题没有被提出过
  • 我已经修改标题, 将标题中的 描述 替换为遇到的问题

功能改进

分页参数 IPage 支持在 Map 参数中生效。方便兼容陈年旧代码:

      Map<String, Object> map = Map.of(
            "pageable", new Page<>(),
            "name", "mybatis-plus",
            "age", 18
      );
     userMapper.testPage(map);

     //------ UserMapper.java ------
     @Select("select * from h2user where name=#{name}")
     IPage<H2User> testPage(Map<String, Object> param);

参考资料

No response

@loren-coding
Copy link
Author

loren-coding commented Sep 24, 2024

@nieqiurong @miemieYaho 单元测试已经通过:#6512

@loren-coding loren-coding changed the title [功能改进]: 分页参数 IPage 支持在 Map 参数中生效 [功能改进]: 分页参数 IPage 支持在 Map 参数中生效 Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant