| | |
| | | |
| | | private void getCustomReportTableData(JSONObject paramIn, Workbook workbook, IPageData pd) { |
| | | Sheet sheet = workbook.createSheet("报表数据"); |
| | | String apiUrl = "reportCustomComponent.listReportCustomComponentData?" + super.mapToUrlParam(paramIn); |
| | | String apiUrl = "reportCustomComponent.listReportCustomComponentData" + super.mapToUrlParam(paramIn); |
| | | ResponseEntity<String> responseEntity = this.callCenterService(restTemplate, pd, "", apiUrl, HttpMethod.GET); |
| | | if (responseEntity.getStatusCode() != HttpStatus.OK) { |
| | | return; |
| | |
| | | return; |
| | | } |
| | | JSONObject tdObj = null; |
| | | for (int tdIndex = 0; tdIndex < th.size(); tdIndex++) { |
| | | for (int tdIndex = 0; tdIndex < td.size(); tdIndex++) { |
| | | row = sheet.createRow(tdIndex + 1); |
| | | tdObj = th.getJSONObject(tdIndex); |
| | | tdObj = td.getJSONObject(tdIndex); |
| | | for (int thIndex = 0; thIndex < th.size(); thIndex++) { |
| | | row.createCell(thIndex).setCellValue(tdObj.getString(th.getString(thIndex))); |
| | | } |