mybatisplus 不等于
时间: 2023-08-30 18:10:17 浏览: 104
MybatisPlus中的条件构造器可以通过使用ne来表示不等于。 你可以在条件构造器中使用ne方法来构建不等于的查询条件。例如:
```
QueryWrapper<Entity> wrapper = new QueryWrapper<>();
wrapper.ne("columnName", value);
```
这样就可以查询出columnName不等于value的结果。其中,"columnName"是你要查询的字段名,value是你要查询的值。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [mybatis plus条件拼接等于、大于、不等于等等](https://blog.csdn.net/FurtherSkyQ/article/details/118155483)[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_2"}}] [.reference_item style="max-width: 50%"]
- *3* [mybatisPlus不能赋null值](https://blog.csdn.net/qq_50652600/article/details/126558971)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文