mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
doc: 更新内置逻辑删除处理器文档。
This commit is contained in:
parent
e8b346bdb7
commit
3b95738dcd
@ -139,12 +139,13 @@ LogicDeleteManager.execWithoutLogicDelete(()->
|
|||||||
|
|
||||||
MyBatis-Flex 提供了三种字段类型对应的逻辑删除处理器,用户可以根据逻辑删除字段的类型进行设置,它们分别是:
|
MyBatis-Flex 提供了三种字段类型对应的逻辑删除处理器,用户可以根据逻辑删除字段的类型进行设置,它们分别是:
|
||||||
|
|
||||||
| 处理器名称 | 对应字段类型 | 数据正常时的值 | 数据被删除时的值 |
|
| 处理器名称 | 对应字段类型 | 数据正常时的值 | 数据被删除时的值 |
|
||||||
|------------------------------|----------|---------|----------|
|
|--------------------------------|-----------|---------|----------|
|
||||||
| IntegerLogicDeleteProcessor | integer | 0 | 1 |
|
| IntegerLogicDeleteProcessor | integer | 0 | 1 |
|
||||||
| BooleanLogicDeleteProcessor | tinyint | false | true |
|
| BooleanLogicDeleteProcessor | tinyint | false | true |
|
||||||
| DateTimeLogicDeleteProcessor | datetime | null | 被删除时间 |
|
| DateTimeLogicDeleteProcessor | datetime | null | 被删除时间 |
|
||||||
| TimeStampLogicDeleteProcessor | bigint | 0 | 被删除时的时间戳 |
|
| TimeStampLogicDeleteProcessor | bigint | 0 | 被删除时的时间戳 |
|
||||||
|
| PrimaryKeyLogicDeleteProcessor | 该条数据的主键类型 | null | 该条数据的主键值 |
|
||||||
|
|
||||||
使用时,只需通过 `LogicDeleteManager` 来设置逻辑删除处理器即可,例如:
|
使用时,只需通过 `LogicDeleteManager` 来设置逻辑删除处理器即可,例如:
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user