mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 优化 字典方法命名
This commit is contained in:
@ -147,7 +147,7 @@ public class FlwNodeExtServiceImpl implements NodeExtService {
|
||||
* @return 返回构建好的 ChildNode 对象
|
||||
*/
|
||||
private NodeExt.ChildNode buildChildNodeFromDict(String dictType) {
|
||||
DictTypeDTO dictTypeDTO = dictService.getDictTypeDto(dictType);
|
||||
DictTypeDTO dictTypeDTO = dictService.getDictType(dictType);
|
||||
if (ObjectUtil.isNull(dictTypeDTO)) {
|
||||
return null;
|
||||
}
|
||||
@ -159,7 +159,7 @@ public class FlwNodeExtServiceImpl implements NodeExtService {
|
||||
// 描述
|
||||
childNode.setDesc(dictTypeDTO.getRemark());
|
||||
// 字典,下拉框和复选框时用到
|
||||
childNode.setDict(dictService.getDictDataDto(dictType)
|
||||
childNode.setDict(dictService.getDictData(dictType)
|
||||
.stream().map(x ->
|
||||
new NodeExt.DictItem(x.getDictLabel(), x.getDictValue(), Convert.toBool(x.getIsDefault(), false))
|
||||
).toList());
|
||||
|
Reference in New Issue
Block a user