fix: 修改字典项值的映射问题

Signed-off-by: 郝先瑞 <1490493387@qq.com>
This commit is contained in:
郝先瑞
2024-08-26 07:22:50 +00:00
committed by Gitee
parent b2c6babae3
commit 31f53321de

View File

@@ -31,7 +31,7 @@ public interface DictItemConverter {
List<DictForm.DictItem> toDictItem(List<SysDictItem> entities);
@Mappings({
@Mapping(target = "value", source = "id"),
@Mapping(target = "value", source = "value"),
@Mapping(target = "label", source = "name")
})
Option<Long> toOption(SysDictItem dictItem);