From a907f8485c9d8bea82c71be7364c4c511e5e429a Mon Sep 17 00:00:00 2001
From: wzy1024 <395778325@qq.com>
Date: Tue, 04 Apr 2023 11:58:26 +0800
Subject: [PATCH] 导出Excel,@Excel注解使用dictType属性时,如果有大量的字典数据,就会有大量的查询redis(打开、关闭),导致特别慢。于是使用map存储字典数据,相同的key就不需要再次去查询redis,大大提高了导出效率。
---
ruoyi-ui/src/api/system/config.js | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/ruoyi-ui/src/api/system/config.js b/ruoyi-ui/src/api/system/config.js
index 124c981..7858c69 100644
--- a/ruoyi-ui/src/api/system/config.js
+++ b/ruoyi-ui/src/api/system/config.js
@@ -51,11 +51,10 @@
})
}
-// 导出参数
-export function exportConfig(query) {
+// 刷新参数缓存
+export function refreshCache() {
return request({
- url: '/system/config/export',
- method: 'get',
- params: query
+ url: '/system/config/refreshCache',
+ method: 'delete'
})
-}
\ No newline at end of file
+}
--
Gitblit v1.9.2