Browse Source

Merge pull request #6473 in DESIGN/design from feature/10.0 to release/10.0

* commit '712b9d42cb782ee3ff3cc531f7ca9f5f6c3afdbb':
  REPORT-59814 代码优化
  REPORT-59814 组件埋点 groupingDetail 返回概率是空数据
zheng-1641779399395
superman 3 years ago
parent
commit
6bcac9b9b2
  1. 5
      designer-base/src/main/java/com/fr/design/mainframe/share/collect/ComponentCollector.java

5
designer-base/src/main/java/com/fr/design/mainframe/share/collect/ComponentCollector.java

@ -288,6 +288,8 @@ public class ComponentCollector implements XMLable {
private JSONArray getGroupingDetail() {
JSONArray ja = JSONFactory.createJSON(JSON.ARRAY);
try {
DefaultShareGroupManager.getInstance().refresh();
Group[] groups = DefaultShareGroupManager.getInstance().getAllGroup();
for(Group group : groups) {
JSONObject jo = JSONFactory.createJSON(JSON.OBJECT);
@ -295,6 +297,9 @@ public class ComponentCollector implements XMLable {
jo.put(CONTAIN_AMOUNT, group.getAllBindInfoList().length);
ja.add(jo);
}
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage());
}
return ja;
}

Loading…
Cancel
Save