| | |
| | | * @param recordDte 业务数据dte |
| | | * @param totalStatisticsFlag 是否合计标识 |
| | | * @param reportConfigMap 报表配置缓存map |
| | | * @param tableStyle |
| | | * @return |
| | | */ |
| | | public ReportEntity getReportEntity(DataTableEntity recordDte, String totalName, Map<Integer, List<JSONObject>> reportConfigMap) { |
| | |
| | | |
| | | if (!CollectionUtil.isEmpty(headTitleRows)) { |
| | | List<List<ReportColumn>> reportHeader = report.getReportHeader(); |
| | | headTitleRows.addAll(reportHeader); |
| | | if (reportHeader != null) { |
| | | headTitleRows.addAll(reportHeader); |
| | | } |
| | | report.setReportHeader(headTitleRows); |
| | | } |
| | | if (!CollectionUtil.isEmpty(tailTitleRows)) { |
| | |
| | | } |
| | | } |
| | | paramKey = dataListReportService.concat(keyObj, CmnConst.ATTR_ROWSPAN); |
| | | column.setRowspan(NumberUtil.parseInt(paramKey)); |
| | | if (NumberUtil.isNumber(paramKey)) { |
| | | column.setRowspan(NumberUtil.parseInt(paramKey)); |
| | | } else { |
| | | column.addProperty(paramKey, "rowspan"); |
| | | } |
| | | replaceMap.put(paramKey, "1"); |
| | | } |
| | | // class |
| | |
| | | if (!StringUtils.isEmpty(totalName)) { |
| | | reportData.add(getDataAreaTotalStatistics(statisticsMap, dataAreaFieldConfigMap, dataAreaGroupFieldNameList, preFse, dataAreaGroupFieldRecordObj, totalName)); |
| | | } |
| | | for (Map.Entry<String, String> entry : replaceMap.entrySet()) { |
| | | reportData.stream().forEach(item -> { |
| | | item.stream().forEach(column -> { |
| | | reportData.stream().forEach(item -> { |
| | | item.stream().forEach(column -> { |
| | | for (Map.Entry<String, String> entry : replaceMap.entrySet()) { |
| | | column.replace(entry.getKey(), entry.getValue()); |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | |
| | | return reportData; |
| | | } |