Skip to content

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

@loren-coding

Description

@loren-coding

确认

  • 我的版本是最新版本, 我的版本号与 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions