Official: mp.baomidou.com/guide/logic…
Is_delete = 1 is deleted when defining a logical delete for a field in a table. Is_delete = 0 default
1. Configuration application. Yml
mybatis-plus:
global-config:
db-config:
logic-delete-value: 1 # Logical deleted value (default: 1)
logic-not-delete-value: 0 # Logical undeleted value (default: 0)
Copy the code
This parameter is optional. Why not:
The reason is that the underlying values are already defaults:
2. Use the @tablelogic annotation
3. Modify the value that is different from the global value