@ -12,7 +12,7 @@ import com.ruoyi.common.core.domain.entity.SysDept;
public interface SysDeptMapper
{
/**
* 查询部门人数
* 查询下级部门数量
*
* @param dept 部门信息
* @return 结果
@ -45,7 +45,7 @@ public interface ISysDeptService
public List<Ztree> roleDeptTreeData(SysRole role);
* 根据父部门ID查询下级部门数量
* @param parentId 父部门ID
@ -111,6 +111,12 @@ public class SysConfigServiceImpl implements ISysConfigService
@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)
@ -146,7 +146,7 @@ public class SysDeptServiceImpl implements ISysDeptService
* @param parentId 部门ID