Browse Source

REPORT-65090:body直接作为Object添加存在序列化问题,builder里面对body的序列化不能应对所有的对象

feature/x
fly.li 3 years ago
parent
commit
777f4550eb
  1. 8
      designer-realize/src/main/java/com/fr/design/actions/report/ReportEngineAttrAction.java

8
designer-realize/src/main/java/com/fr/design/actions/report/ReportEngineAttrAction.java

@ -74,12 +74,8 @@ public class ReportEngineAttrAction extends ReportComponentAction<WorkSheetDesig
body.put("totalPage", layerReportAttr.isPageQuery() ? 1 : 0); body.put("totalPage", layerReportAttr.isPageQuery() ? 1 : 0);
body.put("pagesize", layerReportAttr.getCountPerPage()); body.put("pagesize", layerReportAttr.getCountPerPage());
body.put("totalNum", layerReportAttr.isEnableRowCount() ? 1 : 0); body.put("totalNum", layerReportAttr.isEnableRowCount() ? 1 : 0);
FocusPoint focusPoint = FocusPoint.newBuilder() FocusPoint focusPoint = FocusPoint.create(FOCUS_ID, getPath(), Original.EMBED);
.id(FOCUS_ID) focusPoint.setBody(body.toString());
.source(Original.EMBED)
.text(getPath())
.body(body)
.build();
MetricRegistry.getMetric().submit(focusPoint); MetricRegistry.getMetric().submit(focusPoint);
} }

Loading…
Cancel
Save