|
@@ -9,6 +9,7 @@ package org.eco.vip.nexus.core.service.config;
|
|
|
import com.mybatisflex.core.paginate.Page;
|
|
|
import com.mybatisflex.core.query.QueryWrapper;
|
|
|
import jakarta.annotation.Resource;
|
|
|
+import org.eco.vip.core.utils.ObjUtils;
|
|
|
import org.eco.vip.nexus.core.domain.config.Config;
|
|
|
import org.eco.vip.nexus.core.domain.config.pojo.ConfigBO;
|
|
|
import org.eco.vip.nexus.core.domain.config.pojo.ConfigVO;
|
|
@@ -87,4 +88,14 @@ public class ConfigService extends BaseService<ConfigMapper, Config> implements
|
|
|
List<Config> list = this.list(queryWrapper);
|
|
|
return CollUtils.isNotEmpty(list);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String getConfValue(String key) {
|
|
|
+ QueryWrapper queryWrapper = query().where(CONFIG.CONFIG_KEY.eq(key));
|
|
|
+ Config config = this.getOne(queryWrapper);
|
|
|
+ if(ObjUtils.isNotEmpty(config)){
|
|
|
+ return config.getConfigValue();
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
}
|