From 3fd9147afb374e7b3ac031aceaca67cef8f6ef3c Mon Sep 17 00:00:00 2001 From: dawn Date: Wed, 2 Sep 2020 10:14:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E2=80=9C=E5=9C=A8=E5=8F=AA?= =?UTF-8?q?=E5=A1=AB=E5=8A=A0=E4=BA=86=E5=AD=97=E5=85=B8=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=EF=BC=8C=E6=B2=A1=E6=9C=89=E6=B7=BB=E5=8A=A0=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=97=B6=EF=BC=8C=E4=BC=9A=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E4=BA=86=E7=A9=BA=E9=9B=86=E5=90=88=EF=BC=8C?= =?UTF-8?q?=E5=8D=B3=E4=BD=BF=E5=90=8E=E8=BE=B9=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E5=AD=97=E5=85=B8=E6=95=B0=E6=8D=AE=E4=B9=9F=E6=B2=A1=E7=94=A8?= =?UTF-8?q?=EF=BC=8C=E5=8F=AA=E8=83=BD=E6=B8=85=E7=A9=BAredis=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E3=80=82=E2=80=9D=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E5=B0=8F=E9=97=AE=E9=A2=98=E5=B0=B1=E6=98=AF=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E7=A8=8D=E7=A8=8D=E6=94=B9=E4=BA=86=E4=B8=8B=EF=BC=8C=E8=8B=A5?= =?UTF-8?q?=E4=BE=9D=E5=A4=A7=E5=A4=A7=E8=AE=A9=E6=88=91pr=E5=BD=93?= =?UTF-8?q?=E4=B8=AA=E8=B4=A1=E7=8C=AE=E8=80=85=EF=BC=8C=E5=BE=88=E8=8D=A3?= =?UTF-8?q?=E5=B9=B8=E5=BE=88=E6=AC=A3=E6=85=B0=E3=80=82=E6=84=9F=E8=B0=A2?= =?UTF-8?q?=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java index c38951b..8705c41 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java @@ -76,12 +76,12 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService public List selectDictDataByType(String dictType) { List dictDatas = DictUtils.getDictCache(dictType); - if (StringUtils.isNotNull(dictDatas)) + if (null!=dictDatas&&!dictDatas.isEmpty()) { return dictDatas; } dictDatas = dictDataMapper.selectDictDataByType(dictType); - if (StringUtils.isNotNull(dictDatas)) + if (null!=dictDatas&&!dictDatas.isEmpty()) { DictUtils.setDictCache(dictType, dictDatas); return dictDatas;