25 lines
561 B
Java
25 lines
561 B
Java
package com.engine.secret.util;
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
import weaver.conn.RecordSet;
|
|
|
|
/**
|
|
* @author:dxfeng
|
|
* @createTime: 2025/03/31
|
|
* @version: 1.0
|
|
*/
|
|
public class ConfigUtil {
|
|
public static String getConfig(String name) {
|
|
if (StringUtils.isBlank(name)) {
|
|
return "";
|
|
}
|
|
RecordSet rs = new RecordSet();
|
|
rs.executeQuery("select value from uf_config where name = ?",name.trim());
|
|
if(rs.next()){
|
|
return rs.getString("value").trim();
|
|
}
|
|
return "";
|
|
}
|
|
|
|
}
|