troyzhxu / bean-searcher

🔥🔥🔥 A read-only ORM focusing on advanced query, naturally supports joined tables, and avoids DTO/VO conversion, making it possible to realize complex query in one line of code !
https://bs.zhxu.cn
Apache License 2.0
1.31k stars 148 forks source link

如何实现字典回写 #67

Closed g88827929g closed 2 years ago

g88827929g commented 2 years ago

如何将数据库查询出来的值转为字典值

troyzhxu commented 2 years ago

可以在 结果过滤器中 处理这个逻辑: https://bs.zhxu.cn/guide/latest/advance.html#%E7%BB%93%E6%9E%9C%E8%BF%87%E6%BB%A4%E5%99%A8%EF%BC%88v3-6-0%EF%BC%89

或者再集成一个第三方字典翻译也是可以的。