/** * 查询工单打印信息 * * @return * @throws Exception */ public String queryPrintContent() throws Exception { String[] tasks = request.getParameterValues("tasks"); if (tasks == null || tasks.length == 0) { return JSON_RECORDS; } String[] task_types = new String[tasks.length]; task_ids = new String[tasks.length]; cust_ids = new String[tasks.length]; for (int i = 0; i < tasks.length; i++) { String[] tmp = tasks[i].split("#"); task_types[i] = tmp[0]; cust_ids[i] = tmp[1]; task_ids[i] = tmp[2]; } List<Map<String, Object>> records = taskService.queryPrintContent(task_types, cust_ids, task_ids); getRoot().setRecords(records); return JSON_RECORDS; }