From af7bd200a95b9fc6b8b3f3fc603d612221e21fc7 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期三, 08 一月 2025 08:23:48 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- iailab-module-infra/iailab-module-infra-biz/src/main/java/com/iailab/module/infra/api/config/ConfigApiImpl.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/iailab-module-infra/iailab-module-infra-biz/src/main/java/com/iailab/module/infra/api/config/ConfigApiImpl.java b/iailab-module-infra/iailab-module-infra-biz/src/main/java/com/iailab/module/infra/api/config/ConfigApiImpl.java index 9c1a38d..e81f869 100644 --- a/iailab-module-infra/iailab-module-infra-biz/src/main/java/com/iailab/module/infra/api/config/ConfigApiImpl.java +++ b/iailab-module-infra/iailab-module-infra-biz/src/main/java/com/iailab/module/infra/api/config/ConfigApiImpl.java @@ -3,6 +3,7 @@ import com.iailab.framework.common.pojo.CommonResult; import com.iailab.module.infra.dal.dataobject.config.ConfigDO; import com.iailab.module.infra.service.config.ConfigService; +import org.apache.commons.lang3.ObjectUtils; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.RestController; @@ -18,6 +19,12 @@ private ConfigService configService; @Override + public String queryConfigByCode(String configCode) { + ConfigDO configByKey = configService.getConfigByKey(configCode); + return ObjectUtils.isNotEmpty(configByKey) ? configByKey.getValue() : ""; + } + + @Override public CommonResult<String> getConfigValueByKey(String key) { ConfigDO config = configService.getConfigByKey(key); return success(config != null ? config.getValue() : null); -- Gitblit v1.9.3