public String getCheckerConfigList(String aJson)
throws ApplicationException
{
Map<String, Object> aMap = JsonUtil.jsonStringToMap(aJson);
List<Map<String, Object>> swList = mPoApplySev.getCheckerConfigList(aMap);
JSONArray jsonArray = null;
jsonArray = JsonUtil.listToJSONArray(swList);
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();
}
throws ApplicationException
{
Map<String, Object> aMap = JsonUtil.jsonStringToMap(aJson);
List<Map<String, Object>> swList = mPoApplySev.getCheckerConfigList(aMap);
JSONArray jsonArray = null;
jsonArray = JsonUtil.listToJSONArray(swList);
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();
}