mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
update docs
This commit is contained in:
parent
154f8f26b4
commit
585eff9aeb
@ -62,7 +62,7 @@ export default defineConfig({
|
||||
{text: '事务管理', link: '/zh/tx'},
|
||||
{text: '字段权限', link: '/zh/columns-permission'},
|
||||
{text: '字段加密', link: '/zh/columns-encrypt'},
|
||||
{text: '字典回显', link: '/zh/columns-dict'},
|
||||
{text: '字典回写', link: '/zh/columns-dict'},
|
||||
{text: '枚举属性', link: '/zh/enum-property'},
|
||||
{text: '多租户', link: '/zh/multi-tenancy'},
|
||||
]
|
||||
|
||||
@ -33,7 +33,7 @@ MyBatis-Flex 主要是和 `MyBatis-Plus` 与 `Fluent-Mybatis` 对比,内容来
|
||||
| 数据脱敏 | ✅ | ✔️ **(收费)** | ❌ |
|
||||
| 字段权限 | ✅ | ✔️ **(收费)** | ❌ |
|
||||
| 字段加密 | ✅ | ✔️ **(收费)** | ❌ |
|
||||
| 字典回显 | ✅ | ✔️ **(收费)** | ❌ |
|
||||
| 字典回写 | ✅ | ✔️ **(收费)** | ❌ |
|
||||
| Db + Row | ✅ | ❌ | ❌ |
|
||||
| Entity 监听 | ✅ | ❌ | ❌ |
|
||||
| 多数据源支持 | ✅ | 借助其他框架或收费,不支持非Spring项目 | ❌ |
|
||||
|
||||
@ -117,7 +117,7 @@ public class MyInsertListener implements InsertListener {
|
||||
onSet 可以用于配置:查询数据 entity (或者 entity 列表、分页等)时,对 entity 的属性设置的监听,可以用于如下的差场景。
|
||||
|
||||
- 场景1:字段权限,不同的用户或者角色可以查询不同的字段内容。
|
||||
- 场景2:字典回显,entity 中定义许多业务字段,当数据库字段赋值时,主动去设置业务字段。
|
||||
- 场景2:字典回写,entity 中定义许多业务字段,当数据库字段赋值时,主动去设置业务字段。
|
||||
- 场景3:一对多,一对一查询,entity 中定义关联实体,在监听到字段赋值时,主动去查询关联表赋值。
|
||||
- 场景4:字段加密,监听到内容被赋值时,对内容进行加密处理。
|
||||
- 场景5:字段脱敏,出字段内容进行脱敏处理
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user