From 2c647702a20c9957a05e2649a8a2e79620ad4ff3 Mon Sep 17 00:00:00 2001 From: Midya <365561171@qq.com> Date: Mon, 17 Oct 2022 09:29:10 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0sys=20config=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E6=8A=8A=E7=BC=93=E5=AD=98=E9=87=8C=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE=E4=B9=9F=E6=95=B4=E7=90=86=E4=B8=80?= =?UTF-8?q?=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/impl/SysConfigServiceImpl.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java index 3a77b333f..da87f15f2 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java @@ -103,6 +103,11 @@ public class SysConfigServiceImpl implements ISysConfigService } /** + * @date 2022/10/17 + * @description 更新sys config的时候把缓存里面的数据也整理一下 + * @author Midya + * + * * 修改参数配置 * * @param config 参数配置信息 @@ -111,6 +116,13 @@ public class SysConfigServiceImpl implements ISysConfigService @Override public int updateConfig(SysConfig config) { + // 整理缓存 + SysConfig temp = new SysConfig(); + temp.setConfigId(config.getConfigId()); + String configKey = configMapper.selectConfig(temp).getConfigKey(); + CacheUtils.remove(getCacheName(),getCacheKey(configKey)); + + // int row = configMapper.updateConfig(config); if (row > 0) { From 710bd9477c29eee81291104454cdca1bd5da485d Mon Sep 17 00:00:00 2001 From: Midya <365561171@qq.com> Date: Mon, 17 Oct 2022 11:33:28 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java index b8158b359..33010d4e6 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java @@ -12,7 +12,7 @@ import com.ruoyi.common.core.domain.entity.SysDept; public interface SysDeptMapper { /** - * 查询部门人数 + * 根据条件查询部门个数 * * @param dept 部门信息 * @return 结果 From c06dcee68f3febf23f792d9b585ef2e2c1a1a8d0 Mon Sep 17 00:00:00 2001 From: Midya <365561171@qq.com> Date: Mon, 17 Oct 2022 11:48:09 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java index c0018f5ae..fb24adb2f 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java @@ -146,7 +146,7 @@ public class SysDeptServiceImpl implements ISysDeptService } /** - * 查询部门人数 + * 根据parentId查询子部门个数 * * @param parentId 部门ID * @return 结果