Wang.Huan
1b8e9b1b96
@Dict注解:
适用两种场景
1:翻译字典表
在DTO类需要翻译的字段上添加@Dict(dictCode = "xx_type"),并且新增一个String类型的文本字典;
@Dict(dictCode = "status_enum") // 默认查询 sys_dict_data 表
private Integer statusEnum;
private String statusEnum_dictText;
2:翻译自定义表
@Dict(dictCode = "id", dictText = "name", dictTable = "sys_user")
private Integer roleId;
private String roleId_dictText;
2025-02-26 09:28:02 +08:00
..
2025-02-19 10:29:04 +08:00
2025-02-25 16:28:12 +08:00
2025-02-19 10:29:04 +08:00
2025-02-25 16:28:12 +08:00
2025-02-21 16:04:26 +08:00
2025-02-19 10:29:04 +08:00
2025-02-19 10:29:04 +08:00
2025-02-25 19:21:24 +08:00
2025-02-26 09:28:02 +08:00
2025-02-25 18:52:22 +08:00
2025-02-19 10:29:04 +08:00
2025-02-19 10:29:04 +08:00
2025-02-21 15:53:52 +08:00
2025-02-19 10:29:04 +08:00