|
楼主 |
发表于 2018-9-17 16:32:11
|
显示全部楼层
public static Table parasql(String name,String bidcompany){
string mssql ="SELECT *from ER_Bid_win_info";
mssql += "WHERE 1=1 ";
if(!"".equals(name)){
mssql +="and name like '%"+name+"%' ";
}
if(!"".equals(bidcompany)){
mssql +="and bidcompany like '%"+bidcompany+"%' ";
}
HashMap<String,String> sqlMap = new HashMap<String,String>();
sqlMap.put(SQL.DEFAULT_DB_NAME,mssql);
//sqlMap.put(DatabaseProduct.ORACLE.name(),oracle);
sqlMap.put(DatabaseProduct.MSSQL.name(),mssql);
//sqlMap.put(DatabaseProduct.KINGBASE.name(),oracle);
//sqlMap.put(DatabaseProduct.SYBASE.name(),mssql);
//sqlMap.put(DatabaseProduct.DB2.name(),oracle);
return SQL.select(sqlMap,null,"/erp/base_info/data");
}
|
|