From 0bab416b2bd1b4666041c5fbc85f19ccbbd06391 Mon Sep 17 00:00:00 2001 From: Liyanjun Date: Tue, 4 Jul 2023 11:15:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=AD=97=E5=85=B8=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E8=BF=94=E5=9B=9E=E5=AD=97=E5=85=B8=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kernel/dict/modular/service/impl/DictServiceImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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