Compare commits
No commits in common. '31a7cfc1beb4c7eaa6bdca075838da17b2567be1' and 'e09a6e296c5bf1f3464c687af63a36fcdd91c07b' have entirely different histories.
31a7cfc1be
...
e09a6e296c
@ -1,73 +0,0 @@
|
|||||||
package weaver.interfaces.hzzx.cominfo;
|
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
|
||||||
import weaver.conn.RecordSet;
|
|
||||||
import weaver.general.BaseBean;
|
|
||||||
import weaver.general.Util;
|
|
||||||
|
|
||||||
public class PropBean {
|
|
||||||
|
|
||||||
public static BaseBean bb = new BaseBean();
|
|
||||||
public static String active = Util.null2String(bb.getPropValue("developProp","active")).toUpperCase();
|
|
||||||
|
|
||||||
/***
|
|
||||||
*
|
|
||||||
* @param pkey
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static String getUfPropValue(String pkey)
|
|
||||||
{
|
|
||||||
BaseBean baseBean = new BaseBean();
|
|
||||||
if(StringUtils.isEmpty(pkey)){
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
if(StringUtils.isEmpty(active)){
|
|
||||||
active = Util.null2String(baseBean.getPropValue("developProp","active")).toUpperCase();
|
|
||||||
}
|
|
||||||
|
|
||||||
String pvalue = "";
|
|
||||||
try{
|
|
||||||
RecordSet rs = new RecordSet();
|
|
||||||
String sql = " SELECT DEVVALUE,TESTVALUE,PRODVALUE FROM UF_PROP WHERE PKEY = ?";
|
|
||||||
rs.executeQuery(sql,new Object[]{pkey.trim()});
|
|
||||||
if(rs.next()){
|
|
||||||
pvalue = Util.null2String(rs.getString(active+"VALUE"));
|
|
||||||
}
|
|
||||||
}catch (Exception e){
|
|
||||||
e.printStackTrace();
|
|
||||||
bb.writeLog("propbean-e:"+e);
|
|
||||||
}
|
|
||||||
return pvalue;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/***
|
|
||||||
*
|
|
||||||
* @param pkey
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public String getUfPropValueStatic(String pkey)
|
|
||||||
{
|
|
||||||
BaseBean baseBean = new BaseBean();
|
|
||||||
if(StringUtils.isEmpty(pkey)){
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
String active = Util.null2String(baseBean.getPropValue("developProp","active")).toUpperCase();
|
|
||||||
String pvalue = "";
|
|
||||||
try{
|
|
||||||
RecordSet rs = new RecordSet();
|
|
||||||
String sql = " SELECT DEVVALUE,TESTVALUE,PRODVALUE FROM UF_PROP WHERE PKEY = ?";
|
|
||||||
rs.executeQuery(sql,new Object[]{pkey.trim()});
|
|
||||||
if(rs.next()){
|
|
||||||
pvalue = Util.null2String(rs.getString(active+"VALUE"));
|
|
||||||
}
|
|
||||||
baseBean.writeLog("pvalue:"+pvalue);
|
|
||||||
}catch (Exception e){
|
|
||||||
e.printStackTrace();
|
|
||||||
bb.writeLog("propbean-e:"+e);
|
|
||||||
}
|
|
||||||
return pvalue;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue