diff --git a/kernel-s-dict/dict-business/src/main/java/cn/stylefeng/roses/kernel/dict/modular/service/impl/DictServiceImpl.java b/kernel-s-dict/dict-business/src/main/java/cn/stylefeng/roses/kernel/dict/modular/service/impl/DictServiceImpl.java index 2162c0e0a..2b727a8d2 100644 --- a/kernel-s-dict/dict-business/src/main/java/cn/stylefeng/roses/kernel/dict/modular/service/impl/DictServiceImpl.java +++ b/kernel-s-dict/dict-business/src/main/java/cn/stylefeng/roses/kernel/dict/modular/service/impl/DictServiceImpl.java @@ -32,6 +32,7 @@ import cn.stylefeng.roses.kernel.dict.api.exception.enums.DictExceptionEnum; import cn.stylefeng.roses.kernel.dict.api.pojo.DictDetail; import cn.stylefeng.roses.kernel.dict.api.pojo.SimpleDictUpdateParam; import cn.stylefeng.roses.kernel.dict.modular.entity.SysDict; +import cn.stylefeng.roses.kernel.dict.modular.entity.SysDictType; import cn.stylefeng.roses.kernel.dict.modular.factory.DictFactory; import cn.stylefeng.roses.kernel.dict.modular.mapper.DictMapper; import cn.stylefeng.roses.kernel.dict.modular.pojo.TreeDictInfo; @@ -149,7 +150,12 @@ public class DictServiceImpl extends ServiceImpl implements @Override public SysDict detail(DictRequest dictRequest) { - return this.querySysDict(dictRequest); + SysDict sysDict= this.querySysDict(dictRequest); + if(ObjectUtil.isNotEmpty(sysDict.getDictTypeId())) { + SysDictType sysDictType=dictTypeService.getById(sysDict.getDictTypeId()); + sysDict.setDictTypeName(sysDictType.getDictTypeName()); + } + return sysDict; } @Override