QueryWrapper or前后
时间: 2023-10-15 08:23:58 浏览: 99
引用中的代码是使用QueryWrapper创建了一个查询条件,通过eq方法设置了parent_id的值为parentId。而引用中的代码在前面的基础上添加了一个or条件,即capities等于1或capities等于0。生成的sql语句会根据这些条件进行查询。引用中提到了queryWrapper.notExists方法,它可以用来查询不符合某个SQL语句的值。根据这些引用内容,QueryWrapper的or前后是指在查询条件中添加or关键字的位置。在中,or关键字没有被使用,而在中,or关键字被用来连接两个条件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [MybatisPlus QueryWrapper中and/or多条件筛选失效](https://blog.csdn.net/Zxiaobinggan/article/details/129592110)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [QueryWrapper的用法大全](https://blog.csdn.net/m0_59835914/article/details/129527290)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文