From c8856778599969a0810872bcf04f5e6e3f39c428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=A1=E8=93=9D=E8=89=B2=E7=9A=84=E5=BF=A7=E4=BC=A4?= <1195465270@qq.com> Date: Sun, 18 Dec 2022 18:48:25 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E7=B3=BB=E7=BB=9F=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E5=88=B04.7.6=202=E3=80=81=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=94=AE=E5=90=8D=E6=97=B6=E7=A7=BB=E9=99=A4=E5=89=8D=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E9=85=8D=E7=BD=AE=203=E3=80=81=E5=85=B6=E5=AE=83?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 4 ++-- zhglxt-activiti/pom.xml | 2 +- zhglxt-cms/pom.xml | 2 +- zhglxt-common/pom.xml | 2 +- .../main/java/com/zhglxt/common/core/text/Convert.java | 2 +- zhglxt-demo/pom.xml | 2 +- zhglxt-file-manager/pom.xml | 2 +- zhglxt-file-manager/zhglxt-file-CKFinder/pom.xml | 2 +- .../zhglxt-file-CKFinderPlugin-FileEditor/pom.xml | 2 +- .../zhglxt-file-CKFinderPlugin-ImageResize/pom.xml | 2 +- .../zhglxt-file-CKFinderPlugin-Watermark/pom.xml | 2 +- zhglxt-framework/pom.xml | 2 +- zhglxt-generator/pom.xml | 2 +- zhglxt-oa/pom.xml | 2 +- zhglxt-quartz/pom.xml | 2 +- zhglxt-system/pom.xml | 2 +- .../java/com/zhglxt/system/mapper/SysConfigMapper.java | 8 ++++++++ .../main/java/com/zhglxt/system/mapper/SysDeptMapper.java | 2 +- .../java/com/zhglxt/system/service/ISysDeptService.java | 2 +- .../zhglxt/system/service/impl/SysConfigServiceImpl.java | 6 ++++++ .../zhglxt/system/service/impl/SysDeptServiceImpl.java | 2 +- .../src/main/resources/mapper/system/SysConfigMapper.xml | 5 +++++ zhglxt-web/pom.xml | 2 +- .../web/controller/system/SysProfileController.java | 5 +---- zhglxt-web/src/main/resources/application.yml | 2 +- .../main/resources/templates/demo/form/summernote.html | 4 ++-- .../src/main/resources/templates/demo/form/wizard.html | 2 +- zhglxt-web/src/main/resources/templates/main.html | 3 ++- 28 files changed, 47 insertions(+), 30 deletions(-) diff --git a/pom.xml b/pom.xml index d593c2be..54fb260a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.zhglxt zhglxt - 4.7.5 + 4.7.6 pom zhglxt @@ -15,7 +15,7 @@ 2019 - 4.7.5 + 4.7.6 UTF-8 UTF-8 1.8 diff --git a/zhglxt-activiti/pom.xml b/zhglxt-activiti/pom.xml index 7cf65f82..8176604c 100644 --- a/zhglxt-activiti/pom.xml +++ b/zhglxt-activiti/pom.xml @@ -6,7 +6,7 @@ com.zhglxt zhglxt - 4.7.5 + 4.7.6 zhglxt-activiti diff --git a/zhglxt-cms/pom.xml b/zhglxt-cms/pom.xml index 1074aae1..436d3872 100644 --- a/zhglxt-cms/pom.xml +++ b/zhglxt-cms/pom.xml @@ -5,7 +5,7 @@ zhglxt com.zhglxt - 4.7.5 + 4.7.6 4.0.0 diff --git a/zhglxt-common/pom.xml b/zhglxt-common/pom.xml index 4c2300bc..9983e109 100644 --- a/zhglxt-common/pom.xml +++ b/zhglxt-common/pom.xml @@ -6,7 +6,7 @@ com.zhglxt zhglxt - 4.7.5 + 4.7.6 zhglxt-common diff --git a/zhglxt-common/src/main/java/com/zhglxt/common/core/text/Convert.java b/zhglxt-common/src/main/java/com/zhglxt/common/core/text/Convert.java index 20f693eb..108cc878 100644 --- a/zhglxt-common/src/main/java/com/zhglxt/common/core/text/Convert.java +++ b/zhglxt-common/src/main/java/com/zhglxt/common/core/text/Convert.java @@ -666,7 +666,7 @@ public static BigDecimal toBigDecimal(Object value, BigDecimal defaultValue) { return new BigDecimal((Long) value); } if (value instanceof Double) { - return new BigDecimal((Double) value); + return BigDecimal.valueOf((Double) value); } if (value instanceof Integer) { return new BigDecimal((Integer) value); diff --git a/zhglxt-demo/pom.xml b/zhglxt-demo/pom.xml index 43947fa4..320fe6cd 100644 --- a/zhglxt-demo/pom.xml +++ b/zhglxt-demo/pom.xml @@ -5,7 +5,7 @@ zhglxt com.zhglxt - 4.7.5 + 4.7.6 4.0.0 diff --git a/zhglxt-file-manager/pom.xml b/zhglxt-file-manager/pom.xml index 51539edb..30f733ff 100644 --- a/zhglxt-file-manager/pom.xml +++ b/zhglxt-file-manager/pom.xml @@ -5,7 +5,7 @@ zhglxt com.zhglxt - 4.7.5 + 4.7.6 4.0.0 diff --git a/zhglxt-file-manager/zhglxt-file-CKFinder/pom.xml b/zhglxt-file-manager/zhglxt-file-CKFinder/pom.xml index 0bf9818f..261a7424 100644 --- a/zhglxt-file-manager/zhglxt-file-CKFinder/pom.xml +++ b/zhglxt-file-manager/zhglxt-file-CKFinder/pom.xml @@ -5,7 +5,7 @@ zhglxt-file-manager com.zhglxt - 4.7.5 + 4.7.6 4.0.0 diff --git a/zhglxt-file-manager/zhglxt-file-CKFinderPlugin-FileEditor/pom.xml b/zhglxt-file-manager/zhglxt-file-CKFinderPlugin-FileEditor/pom.xml index b5d9353a..441ea195 100644 --- a/zhglxt-file-manager/zhglxt-file-CKFinderPlugin-FileEditor/pom.xml +++ b/zhglxt-file-manager/zhglxt-file-CKFinderPlugin-FileEditor/pom.xml @@ -5,7 +5,7 @@ zhglxt-file-manager com.zhglxt - 4.7.5 + 4.7.6 4.0.0 diff --git a/zhglxt-file-manager/zhglxt-file-CKFinderPlugin-ImageResize/pom.xml b/zhglxt-file-manager/zhglxt-file-CKFinderPlugin-ImageResize/pom.xml index 25ed90ad..1f84f5d3 100644 --- a/zhglxt-file-manager/zhglxt-file-CKFinderPlugin-ImageResize/pom.xml +++ b/zhglxt-file-manager/zhglxt-file-CKFinderPlugin-ImageResize/pom.xml @@ -5,7 +5,7 @@ zhglxt-file-manager com.zhglxt - 4.7.5 + 4.7.6 4.0.0 diff --git a/zhglxt-file-manager/zhglxt-file-CKFinderPlugin-Watermark/pom.xml b/zhglxt-file-manager/zhglxt-file-CKFinderPlugin-Watermark/pom.xml index c3c2f2ce..18f545c8 100644 --- a/zhglxt-file-manager/zhglxt-file-CKFinderPlugin-Watermark/pom.xml +++ b/zhglxt-file-manager/zhglxt-file-CKFinderPlugin-Watermark/pom.xml @@ -5,7 +5,7 @@ zhglxt-file-manager com.zhglxt - 4.7.5 + 4.7.6 4.0.0 diff --git a/zhglxt-framework/pom.xml b/zhglxt-framework/pom.xml index a6fbd046..d817bc6b 100644 --- a/zhglxt-framework/pom.xml +++ b/zhglxt-framework/pom.xml @@ -6,7 +6,7 @@ com.zhglxt zhglxt - 4.7.5 + 4.7.6 zhglxt-framework diff --git a/zhglxt-generator/pom.xml b/zhglxt-generator/pom.xml index b544d186..144ae76a 100644 --- a/zhglxt-generator/pom.xml +++ b/zhglxt-generator/pom.xml @@ -5,7 +5,7 @@ zhglxt com.zhglxt - 4.7.5 + 4.7.6 4.0.0 diff --git a/zhglxt-oa/pom.xml b/zhglxt-oa/pom.xml index 3d797caa..458ea109 100644 --- a/zhglxt-oa/pom.xml +++ b/zhglxt-oa/pom.xml @@ -6,7 +6,7 @@ com.zhglxt zhglxt - 4.7.5 + 4.7.6 zhglxt-oa diff --git a/zhglxt-quartz/pom.xml b/zhglxt-quartz/pom.xml index 3b419232..d1914316 100644 --- a/zhglxt-quartz/pom.xml +++ b/zhglxt-quartz/pom.xml @@ -6,7 +6,7 @@ com.zhglxt zhglxt - 4.7.5 + 4.7.6 zhglxt-quartz diff --git a/zhglxt-system/pom.xml b/zhglxt-system/pom.xml index 7195a86e..2bee7871 100644 --- a/zhglxt-system/pom.xml +++ b/zhglxt-system/pom.xml @@ -6,7 +6,7 @@ com.zhglxt zhglxt - 4.7.5 + 4.7.6 zhglxt-system diff --git a/zhglxt-system/src/main/java/com/zhglxt/system/mapper/SysConfigMapper.java b/zhglxt-system/src/main/java/com/zhglxt/system/mapper/SysConfigMapper.java index 9db763a1..9f34c4d5 100644 --- a/zhglxt-system/src/main/java/com/zhglxt/system/mapper/SysConfigMapper.java +++ b/zhglxt-system/src/main/java/com/zhglxt/system/mapper/SysConfigMapper.java @@ -22,6 +22,14 @@ public interface SysConfigMapper { */ public SysConfig selectConfig(SysConfig config); + /** + * 通过ID查询配置 + * + * @param configId 参数ID + * @return 参数配置信息 + */ + public SysConfig selectConfigById(String configId); + /** * 查询参数配置列表 * diff --git a/zhglxt-system/src/main/java/com/zhglxt/system/mapper/SysDeptMapper.java b/zhglxt-system/src/main/java/com/zhglxt/system/mapper/SysDeptMapper.java index 70c2a815..95fc4819 100644 --- a/zhglxt-system/src/main/java/com/zhglxt/system/mapper/SysDeptMapper.java +++ b/zhglxt-system/src/main/java/com/zhglxt/system/mapper/SysDeptMapper.java @@ -17,7 +17,7 @@ @Component public interface SysDeptMapper { /** - * 查询部门人数 + * 查询下级部门数量 * * @param dept 部门信息 * @return 结果 diff --git a/zhglxt-system/src/main/java/com/zhglxt/system/service/ISysDeptService.java b/zhglxt-system/src/main/java/com/zhglxt/system/service/ISysDeptService.java index 08ec1b0b..10b96ec8 100644 --- a/zhglxt-system/src/main/java/com/zhglxt/system/service/ISysDeptService.java +++ b/zhglxt-system/src/main/java/com/zhglxt/system/service/ISysDeptService.java @@ -45,7 +45,7 @@ public interface ISysDeptService { public List roleDeptTreeData(SysRole role); /** - * 查询部门人数 + * 根据父部门ID查询下级部门数量 * * @param parentId 父部门ID * @return 结果 diff --git a/zhglxt-system/src/main/java/com/zhglxt/system/service/impl/SysConfigServiceImpl.java b/zhglxt-system/src/main/java/com/zhglxt/system/service/impl/SysConfigServiceImpl.java index 6091c36f..7444623b 100644 --- a/zhglxt-system/src/main/java/com/zhglxt/system/service/impl/SysConfigServiceImpl.java +++ b/zhglxt-system/src/main/java/com/zhglxt/system/service/impl/SysConfigServiceImpl.java @@ -102,6 +102,12 @@ public int insertConfig(SysConfig config) { */ @Override public int updateConfig(SysConfig config) { + SysConfig temp = configMapper.selectConfigById(config.getConfigId()); + if (!StringUtils.equals(temp.getConfigKey(), config.getConfigKey())) + { + CacheUtils.remove(getCacheName(), getCacheKey(temp.getConfigKey())); + } + int row = configMapper.updateConfig(config); if (row > 0) { CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue()); diff --git a/zhglxt-system/src/main/java/com/zhglxt/system/service/impl/SysDeptServiceImpl.java b/zhglxt-system/src/main/java/com/zhglxt/system/service/impl/SysDeptServiceImpl.java index 3e40f5c5..428ad756 100644 --- a/zhglxt-system/src/main/java/com/zhglxt/system/service/impl/SysDeptServiceImpl.java +++ b/zhglxt-system/src/main/java/com/zhglxt/system/service/impl/SysDeptServiceImpl.java @@ -138,7 +138,7 @@ public List initZtree(List deptList, List roleDeptList) } /** - * 查询部门人数 + * 根据父部门ID查询下级部门数量 * * @param parentId 部门ID * @return 结果 diff --git a/zhglxt-system/src/main/resources/mapper/system/SysConfigMapper.xml b/zhglxt-system/src/main/resources/mapper/system/SysConfigMapper.xml index 2d69354c..1c54a8ef 100644 --- a/zhglxt-system/src/main/resources/mapper/system/SysConfigMapper.xml +++ b/zhglxt-system/src/main/resources/mapper/system/SysConfigMapper.xml @@ -59,6 +59,11 @@ + +