|
@@ -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.constant.Constants;
|
|
|
import org.eco.vip.core.pojo.PageResult;
|
|
|
import org.eco.vip.core.utils.CollUtils;
|
|
|
import org.eco.vip.core.utils.MapstructUtils;
|
|
@@ -92,7 +93,7 @@ public class ConfigService extends BaseService<ConfigMapper, Config> implements
|
|
|
|
|
|
@Override
|
|
|
public String getConfValue(String key) {
|
|
|
- QueryWrapper queryWrapper = query().where(CONFIG.CONFIG_KEY.eq(key));
|
|
|
+ QueryWrapper queryWrapper = query().where(CONFIG.CONFIG_KEY.eq(key).and(CONFIG.STATUS.eq(Constants.NORMAL)));
|
|
|
Config config = this.getOne(queryWrapper);
|
|
|
if (ObjUtils.isNotEmpty(config)) {
|
|
|
return config.getConfigValue();
|