mirror of https://gitee.com/y_project/RuoYi.git
Pre Merge pull request !415 from Midya/master
commit
0aea704dec
|
@ -12,7 +12,7 @@ import com.ruoyi.common.core.domain.entity.SysDept;
|
|||
public interface SysDeptMapper
|
||||
{
|
||||
/**
|
||||
* 查询部门人数
|
||||
* 根据条件查询部门个数
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -146,7 +146,7 @@ public class SysDeptServiceImpl implements ISysDeptService
|
|||
}
|
||||
|
||||
/**
|
||||
* 查询部门人数
|
||||
* 根据parentId查询子部门个数
|
||||
*
|
||||
* @param parentId 部门ID
|
||||
* @return 结果
|
||||
|
|
Loading…
Reference in New Issue