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

ExampleWrapper 能否提供 clear() #70

Closed
anylys opened this issue Nov 5, 2022 · 1 comment
Closed

ExampleWrapper 能否提供 clear() #70

anylys opened this issue Nov 5, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@anylys
Copy link

anylys commented Nov 5, 2022

1.通过条件查询了全部

ExampleWrapper<XXX, Long> wrapper = xxxMapper.wrapper();
  wrapper
                .eqXXX::getStatus, 0).list();
  1. 做更新
    for 循环更新 我需要再次利用 wrapper
// wrapper.example().clear(); 执行这个清空会导致下面的条件不生效
wrapper().eq(xx, 1)).updateSelective( 内容);

目前是

menuMapper.wrapper() 重新创建一个,

是否可以直接提供ExampleWrapper的 clear()

@abel533
Copy link
Contributor

abel533 commented Nov 26, 2022

可以提供。

@abel533 abel533 added the enhancement New feature or request label Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants