Pre Merge pull request !415 from Midya/master

This commit is contained in:
Midya 2022-12-13 05:18:07 +00:00 committed by Gitee
commit 0aea704dec
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 14 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import com.ruoyi.common.core.domain.entity.SysDept;
public interface SysDeptMapper
{
/**
* 查询部门人
* 根据条件查询部门个
*
* @param dept 部门信息
* @return 结果

View File

@ -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)
{

View File

@ -146,7 +146,7 @@ public class SysDeptServiceImpl implements ISysDeptService
}
/**
* 查询部门人
* 根据parentId查询子部门个
*
* @param parentId 部门ID
* @return 结果