mybatisplus wrapper orand
时间: 2023-10-09 12:16:53 浏览: 34
MyBatis-Plus (also known as MyBatis+) is an enhanced version of the MyBatis framework. It provides additional features and utilities to simplify the development process.
The `Wrapper` class in MyBatis-Plus is used to construct SQL queries dynamically. It provides a set of methods that can be used to add conditions to the query. For example, `eq` adds an equal condition, `like` adds a like condition, and so on. `Wrapper` also supports nested queries and complex conditions.
`or` and `and` are two methods provided by the `Wrapper` class to specify how the conditions should be combined. `and` is used to add conditions that must all be true, while `or` is used to add conditions where at least one must be true.
In summary, `Wrapper` is a powerful tool for constructing dynamic SQL queries in MyBatis-Plus, and `or` and `and` are two methods that can be used to combine conditions in the query.