From fcca2716829649ee6f94dc1b401dd3e53d29b992 Mon Sep 17 00:00:00 2001 From: wuxu Date: Tue, 1 Apr 2025 15:40:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=B7=E6=96=B0=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E6=93=8D=E4=BD=9C=EF=BC=9B=E8=A7=A3=E5=86=B3=E4=B8=8D?= =?UTF-8?q?=E8=89=AF=E8=A1=8C=E4=B8=BA=E6=95=B0=E6=8D=AE=E4=B8=8D=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/dict/index.vue | 8 ++++---- .../system/service/SysDictTypeService.java | 20 +++++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/jwtech-admin-page/src/views/system/dict/index.vue b/jwtech-admin-page/src/views/system/dict/index.vue index 8a52e3e6..b37dcc49 100644 --- a/jwtech-admin-page/src/views/system/dict/index.vue +++ b/jwtech-admin-page/src/views/system/dict/index.vue @@ -112,15 +112,15 @@ >导出 - + >刷新缓存 + { if (response.code === 200) { - this.msgSuccess("清理成功"); + this.msgSuccess("刷新成功"); } }); }, diff --git a/jwtech-system/src/main/java/com/kms/system/service/SysDictTypeService.java b/jwtech-system/src/main/java/com/kms/system/service/SysDictTypeService.java index 5bfb28c7..0208f771 100644 --- a/jwtech-system/src/main/java/com/kms/system/service/SysDictTypeService.java +++ b/jwtech-system/src/main/java/com/kms/system/service/SysDictTypeService.java @@ -41,8 +41,14 @@ public class SysDictTypeService extends BaseService dictTypeList = dictTypeMapper.selectDictTypeAll(); for (SysDictType dictType : dictTypeList) { + if("bad_credit_behavior".equals(dictType.getDictType())){ + System.out.println(1); + } List dictDatas = dictDataMapper.selectDictDataByType(dictType.getDictType()); DictUtils.setDictCache(dictType.getDictType(), dictDatas); + if("bad_credit_behavior".equals(dictType.getDictType())){ + System.out.println(1); + } } } @@ -80,6 +86,7 @@ public class SysDictTypeService extends BaseService dictTypeList = dictTypeMapper.selectDictTypeAll(); + for (SysDictType dictType : dictTypeList) + { + if("bad_credit_behavior".equals(dictType.getDictType())){ + System.out.println(1); + } + List dictDatas = dictDataMapper.selectDictDataByType(dictType.getDictType()); + DictUtils.setDictCache(dictType.getDictType(), dictDatas); + if("bad_credit_behavior".equals(dictType.getDictType())){ + System.out.println(1); + } + } } /**