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 参数中生效. #6512

Open
wants to merge 1 commit into
base: 3.0
Choose a base branch
from

Conversation

loren-coding
Copy link

@loren-coding loren-coding commented Sep 24, 2024

分页参数 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);

@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

Successfully merging this pull request may close these issues.

1 participant