From eda98517e22f6c9e21853ddcd7c5f5d0ff7bde91 Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Thu, 30 Mar 2023 14:43:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E5=8C=96=E7=A8=8B=E5=BA=A6=E3=80=81?= =?UTF-8?q?=E6=B0=91=E6=97=8F=E7=BC=93=E5=AD=98key=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/epmet/service/impl/SysDictDataServiceImpl.java | 2 +- .../main/java/com/epmet/commons/tools/redis/RedisKeys.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/epmet-admin/epmet-admin-server/src/main/java/com/epmet/service/impl/SysDictDataServiceImpl.java b/epmet-admin/epmet-admin-server/src/main/java/com/epmet/service/impl/SysDictDataServiceImpl.java index 75eab372eb..9a9abeb5e5 100644 --- a/epmet-admin/epmet-admin-server/src/main/java/com/epmet/service/impl/SysDictDataServiceImpl.java +++ b/epmet-admin/epmet-admin-server/src/main/java/com/epmet/service/impl/SysDictDataServiceImpl.java @@ -173,7 +173,7 @@ public class SysDictDataServiceImpl extends BaseServiceImpl getNationOption() { - String cacheKey = RedisKeys.getEducationOptions(); + String cacheKey = RedisKeys.getNationOptions(); List cachedDatas = JSON.parseObject(redisUtils.getString(cacheKey), new TypeReference>(){}); if (cachedDatas != null) { return cachedDatas; diff --git a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/RedisKeys.java b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/RedisKeys.java index bd1fff179d..e92f1a608f 100644 --- a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/RedisKeys.java +++ b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/RedisKeys.java @@ -1019,6 +1019,10 @@ public class RedisKeys { return rootPrefix.concat("icform:options:education"); } + public static String getNationOptions() { + return rootPrefix.concat("icform:options:nation"); + } + /** * 住房性质 * @author wxz