update SystemConfigService

This commit is contained in:
Turbolisten 2021-09-23 20:14:53 +08:00
parent e4c3895e59
commit 08090b6e5b

View File

@ -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);
} }