doc: 更新内置逻辑删除处理器文档。

This commit is contained in:
Suomm 2023-07-29 11:33:28 +08:00
parent e8b346bdb7
commit 3b95738dcd

View File

@ -140,11 +140,12 @@ 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` 来设置逻辑删除处理器即可,例如: