|
楼主 |
发表于 2017-4-14 09:57:21
|
显示全部楼层
本帖最后由 风竹 于 2017-4-14 10:48 编辑
真的不好意思,还是没太看明白您给我发案例。能集体给我写个代码吗?最好用我的代码!我现在写代码不知道该怎么写了!
public static JSONObject wikipedia(JSONObject params, ActionContext context ) throws SQLException, Exception {
String db_bklist = params.getString("db_bklist");
Object columns = params.get("columns");
List<Object> sqlParams = new ArrayList<Object>();
List<String> filters = new ArrayList<String>();
sqlParams.add(db_bklist);
Table table = null;
Table response = null;
Connection conn = context.getConnection("framhelp");
table = DataUtils.queryData(conn, "db_bklist", columns, filters, "", sqlParams, null, null);
DataUtils.writeTableToResponse(arg0, table);
}
|
|