mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-08 21:26:40 +08:00
update SystemConfigService
This commit is contained in:
parent
e4c3895e59
commit
08090b6e5b
@ -104,6 +104,8 @@ public class SystemConfigService {
|
|||||||
|
|
||||||
SystemConfigEntity entity = this.CONFIG_CACHE.get(configKey);
|
SystemConfigEntity entity = this.CONFIG_CACHE.get(configKey);
|
||||||
Assert.notNull(entity, "缺少系统配置[" + configKey + "]");
|
Assert.notNull(entity, "缺少系统配置[" + configKey + "]");
|
||||||
|
Assert.isTrue(!entity.getDisabledFlag(), "系统配置[" + configKey + "]已被禁用");
|
||||||
|
|
||||||
return SmartBeanUtil.copy(entity, SystemConfigDTO.class);
|
return SmartBeanUtil.copy(entity, SystemConfigDTO.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user