JSONArray jsonArray = null;
jsonArray = JsonUtil.listToJSONArray(jsonList);
int allRecords = mPoApplySev.getCheckerConfigListCount(aMap);
JSONObject json = new JSONObject();
try
{
//存入记录列表
json.put("checkerConfigList", jsonArray.toString());
//存入记录总数
json.put("total_row", allRecords);
}
catch (JSONException e)
{
Logger.getLogger(this.getClass()).error("getCheckerConfigList:"+e.toString());
}
return json.toString();
}
jsonArray = JsonUtil.listToJSONArray(jsonList);
int allRecords = mPoApplySev.getCheckerConfigListCount(aMap);
JSONObject json = new JSONObject();
try
{
//存入记录列表
json.put("checkerConfigList", jsonArray.toString());
//存入记录总数
json.put("total_row", allRecords);
}
catch (JSONException e)
{
Logger.getLogger(this.getClass()).error("getCheckerConfigList:"+e.toString());
}
return json.toString();
}