From d141aee7ec84d3578a19be8c26f10759c1e557b4 Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期五, 02 八月 2024 09:11:16 +0800
Subject: [PATCH] add maven setting配置

---
 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